Skip to content
This repository has been archived by the owner on Feb 5, 2018. It is now read-only.

Input expected is different from input as described in README #2

Open
smartschat opened this issue Aug 15, 2016 · 0 comments
Open

Input expected is different from input as described in README #2

smartschat opened this issue Aug 15, 2016 · 0 comments

Comments

@smartschat
Copy link

smartschat commented Aug 15, 2016

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()]).

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant