File size: 1,389 Bytes
901e06a
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# Quick Start
Following are some minimal examples to use SimulEval. More details can be found [here](https://simuleval.readthedocs.io/en/v1.1.0/quick_start.html).

## First Agent
To evaluate a text-to-text wait-3 system with random output:

```
> simuleval --source source.txt --target target.txt --agent first_agent.py

2022-12-05 13:43:58 | INFO | simuleval.cli | Evaluate system: DummyWaitkTextAgent
2022-12-05 13:43:58 | INFO | simuleval.dataloader | Evaluating from text to text.
2022-12-05 13:43:58 | INFO | simuleval.sentence_level_evaluator | Results:
BLEU  AL    AP  DAL
1.541 3.0 0.688  3.0

```

## Agent with Command Line Arguments
```
simuleval --source source.txt --target target.txt --agent agent_with_configs.py --waitk 3 --vocab dict.txt
```

## Agent Pipeline
```
simuleval --source source.txt --target target.txt --agent agent_pipeline.py
```

## Agent with New Metrics
```
simuleval --source source.txt --target target.txt --agent agent_with_new_metrics.py
```

## Standalone Agent & Remote Evaluation
Start an agent server:
```
simuleval --standalone --remote-port 8888 --agent agent_with_new_metrics.py
```
Or with docker
```
docker build -t simuleval_agent .
docker run -p 8888:8888 simuleval_agent:latest
```

Start a remote evaluator:
```
simuleval --remote-eval --source source.txt --target target.txt --source-type text --target-type text --remote-port 8888
```