Skip to content

Commit

Permalink
Correct mistakes in sacRebleu.Rmd, update .gitignore
Browse files Browse the repository at this point in the history
  • Loading branch information
lampyridae94 committed Apr 19, 2024
1 parent ff2752a commit 2e5142b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,5 @@ inst/doc
/doc/
/Meta/
*.ref
..Rcheck/
..Rcheck/
.vscode/
12 changes: 6 additions & 6 deletions vignettes/sacReBLEU.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -65,15 +65,15 @@ the numerator and the denominator of the precision calculation for each 1..N-gra
First, we need to download the data. The repository of [Freitag et al., 2020](https://github.com/google/wmt19-paraphrased-references) offers additional reference translations
for some WMT datasets.
```{R}
download.file("https://github.com/google/wmt19-paraphrased-references/raw/master/wmt19/ende/wmt19-ende-ar.ref", "wmt19-ende-ar.ref", method="wget")
download.file("https://github.com/google/wmt19-paraphrased-references/raw/master/wmt19/ende/wmt19-ende-arp.ref", "wmt19-ende-arp.ref", method="wget")
download.file("https://github.com/google/wmt19-paraphrased-references/raw/master/wmt19/ende/wmt19-ende-wmtp.ref", "wmt19-ende-wmtp.ref", method="wget")
download.file("https://github.com/google/wmt19-paraphrased-references/raw/master/wmt19/ende/wmt19-ende-ar.ref", "wmt19-ende-ar.ref")
download.file("https://github.com/google/wmt19-paraphrased-references/raw/master/wmt19/ende/wmt19-ende-arp.ref", "wmt19-ende-arp.ref")
download.file("https://github.com/google/wmt19-paraphrased-references/raw/master/wmt19/ende/wmt19-ende-wmtp.ref", "wmt19-ende-wmtp.ref")
```

```{R}
ar <- readLines("/home/philko/Documents/Projects/Reval/wmt19-ende-ar.ref")
arp <- readLines("/home/philko/Documents/Projects/Reval/wmt19-ende-arp.ref")
wmtp <- readLines("/home/philko/Documents/Projects/Reval/wmt19-ende-wmtp.ref")
ar <- readLines("wmt19-ende-ar.ref")
arp <- readLines("wmt19-ende-arp.ref")
wmtp <- readLines("wmt19-ende-wmtp.ref")
```

Now, we need to bring the candidate and reference sentences into the correct format:
Expand Down

0 comments on commit 2e5142b

Please sign in to comment.