Skip to content

Commit

Permalink
Fixed path to JSON file
Browse files Browse the repository at this point in the history
  • Loading branch information
mjpost committed Jun 1, 2023
1 parent 991cab6 commit c964f7f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ Under `bin/` are two scripts:
Using our modified ContraPro dataset, you first need to change to that directory and run the download script to download OpenSubs. Then run:

# maximum 250 tokens, en-de
./ext/ContraPro/bin/json2text.py -m 250 --spm /path/to/spm/model --json-file ContraPro/contrapro.json > contrapro.en-de.tsv
./ext/ContraPro/bin/json2text.py -m 250 --spm /path/to/spm/model --json-file ext/ContraPro/contrapro.json > contrapro.en-de.tsv

This will print the file to STDOUT: 36,031 lines of correct and contrastive lines. One of the fields has a value of "correct" or "contrastive"; for generative results, use only the former. You can output only these using the `--correct-only` flag.

Expand Down

0 comments on commit c964f7f

Please sign in to comment.