pyrouge
pyrouge copied to clipboard
Input expected is different from input as described in README
In the README, the following example is given:
ref_texts = {'A': "Poor nations pressurise developed countries into granting trade subsidies.",
'B': "Developed countries should be pressurized. Business exemptions to poor nations.",
'C': "World's poor decide to urge developed nations for business concessions."}
summary_text = "Poor nations demand trade subsidies from developed nations."
However, when providing pyrouge with this input, lines in the created HTML files look like this:
<html>
<head>
<title>A</title>
</head>
<body>
<a name="1">[1]</a> <a href="#1" id=1>P</a>
<a name="2">[2]</a> <a href="#2" id=2>o</a>
<a name="3">[3]</a> <a href="#3" id=3>o</a>
<a name="4">[4]</a> <a href="#4" id=4>r</a>
<a name="5">[5]</a> <a href="#5" id=5> </a>
<a name="6">[6]</a> <a href="#6" id=6>n</a>
<a name="7">[7]</a> <a href="#7" id=7>a</a>
<a name="8">[8]</a> <a href="#8" id=8>t</a>
<a name="9">[9]</a> <a href="#9" id=9>i</a>
If I understand it correctly, each line should contain one sentence. Therefore, the input has to be modified accordingly (e.g. by instead providing ["Poor nations pressurise developed countries into granting trade subsidies .".split()]
).