Skip to content

Commit

Permalink
Merge pull request #10 from clemsciences/main
Browse files Browse the repository at this point in the history
Fixed typo and specified encoding
  • Loading branch information
LinguList authored Jun 3, 2022
2 parents 042c28e + 4e54579 commit aa1f1ed
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ For the CorPaR classifier, type:
$ python analyze.py corpar
```

The results in the form of preditions are written to TSV files in the folders `results/svm` and `results/corpar` respectively. To analyze them by computing edit distance and B-Cubed F-scores, we use the script `evaluate.py`:
The results in the form of predictions are written to TSV files in the folders `results/svm` and `results/corpar` respectively. To analyze them by computing edit distance and B-Cubed F-scores, we use the script `evaluate.py`:

```
$ python evaluate.py
Expand Down
2 changes: 1 addition & 1 deletion evaluate.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@

for clf in classifiers:
for pth in progressbar(list(Path("results", clf).glob("*.tsv"))[:]):
with open(pth) as f:
with open(pth, "r", encoding="utf-8") as f:
res = []
for row in f:
res += [[[a.strip() for a in x.split()] for x in row.split("\t")]]
Expand Down

0 comments on commit aa1f1ed

Please sign in to comment.