@@ -5,15 +5,16 @@ Given two files with the same number of lines, `files2rouge` calculates the aver
5
5
6
6
You may also be interested in a Python implementation (instead of a wrapper): < https://github.com/pltrdy/rouge > .
7
7
8
- ``` shell
8
+ ``` bash
9
9
$ files2rouge --help
10
- usage: files2rouge [-h] [-v] [-a ARGS] [-s SAVETO] [-e EOS] summary reference
10
+ usage: files2rouge [-h] [-v] [-a ARGS] [-s SAVETO] [-e EOS] [-m] [-i]
11
+ reference summary
11
12
12
13
Calculating ROUGE score between two files (line-by-line)
13
14
14
15
positional arguments:
15
- summary Path of summary file
16
16
reference Path of references file
17
+ summary Path of summary file
17
18
18
19
optional arguments:
19
20
-h, --help show this help message and exit
@@ -23,6 +24,8 @@ optional arguments:
23
24
File to save scores
24
25
-e EOS, --eos EOS End of sentence separator (for multisentence).
25
26
Default: " ."
27
+ -m, --stemming
28
+ -i, --ignore_empty
26
29
```
27
30
28
31
## Getting Started
@@ -44,7 +47,7 @@ python setup.py install
44
47
45
48
** 2) Run ` files2rouge.py ` **
46
49
``` bash
47
- files2rouge summaries .txt references .txt
50
+ files2rouge references .txt summaries .txt
48
51
```
49
52
50
53
** Outputs:**
@@ -80,7 +83,7 @@ files2rouge.run(hyp_path, ref_path)
80
83
One can specify which ROUGE args to use using the flag ` --args ` (or ` -a ` ).
81
84
The default behavior is equivalent to:
82
85
```
83
- files2rouge summary .txt reference .txt -a "-c 95 -r 1000 -n 2 -a" # be sure to write args betwen double-quotes
86
+ files2rouge reference .txt summary .txt -a "-c 95 -r 1000 -n 2 -a" # be sure to write args betwen double-quotes
84
87
```
85
88
You can find more informations about these arguments [ here] ( ./files2rouge/RELEASE-1.5.5/README.txt )
86
89
0 commit comments