pltrdy / extoracle_summarization

Ext-Oracle Summarization: extractive summarization that maximize ROUGE w.r.t. target
Apache License 2.0
11 stars 0 forks source link

The cnn/daily data set calls this code only to generate one sentence #2

Closed espory closed 2 years ago

espory commented 2 years ago

A reproducible demo is as follows

The texts (are PTB-tokenized): sourceTest.txt targetTest.txt

The output :

Mother of three Erica Leeder allegedly squirted breast milk at a police officer .

The following commands:

extoracle sourceTest.txt targetTest.txt -length_oracle -output oracleTest.txt
extoracle sourceTest.txt targetTest.txt -length 3 -output oracleTest.txt
espory commented 2 years ago

I found the problem! There is extra '\n' in targetTest.txt