Giter Club home page Giter Club logo

Comments (8)

Angela7126 avatar Angela7126 commented on July 30, 2024

@xiyan524 Thanks for your attention~
For your question, Have you tried to install "DB_File" model into your Perl environment?
Inputting "ppm install DB_File" in your command lines and running it will install DB_File model.
PS: When I ran this pyrouge project, it not raise this error. So, actually, I am not sure whether installing "DB_File" model will solve your problem. If it doesn't work or raise other errors, please let me know. I will try to help~ ^_^

from pyrouge_for_windows.

Angela7126 avatar Angela7126 commented on July 30, 2024

@xiyan524 Are you install the whole pyrouge environment according to the article on http://blog.csdn.net/MerryCao/article/details/73477543 ?
If you follow this instructions and your computer system is win 8 or win 10, you do not need to create and revise “setting.ini" file as I have written in section 5.3, and you do not need to revise the line 87 of file MyRouge155.py as I have written in section 5.5.
If you have changed the line 87 in MyRouge155.py, please recover the line 87 as:

self._settings_file = self.__get_config_path()

from pyrouge_for_windows.

Angela7126 avatar Angela7126 commented on July 30, 2024

@xiyan524 I have just add some comments for the arguments in the code in my CDSN blog.
system_path: the directory where stores automatically generated summaries that your summarization models produced.
model_path: the directory of standard summaries.
modelpattern: the regular expression for the name pattern of your standard summaries.
systempattern: the regular expression for the name pattern of your standard summaries.
config_file_path: the path where you want to store the rouge_conf.xml file.
system_idstr: a list storing the IDs of your automatic summarization models that you want to test, such as ['01','02','03'].

from pyrouge_for_windows.

xiyan524 avatar xiyan524 commented on July 30, 2024

@Angela7126 Thanks for help, but I still met some problem.
I can not install DB_File module. Firstly, I tried to install by ppm. While I use 'ppm install DB_File', it shows 'no missing package to install' . I can not find any useful solution for it. If I open ppm in my computer,it shows DB_File module had been installed, but verified 0 files(confused about this...)
Then I download DB_File-1.840 from website, and put it in my perl lib path. However, it seems like ppm can not recognize it

from pyrouge_for_windows.

AmyZhangMin avatar AmyZhangMin commented on July 30, 2024

@Angela7126 Thanks for help, but I still met some problem.
I can not install DB_File module. Firstly, I tried to install by ppm. While I use 'ppm install DB_File', it shows 'no missing package to install' . I can not find any useful solution for it. If I open ppm in my computer,it shows DB_File module had been installed, but verified 0 files(confused about this...)
Then I download DB_File-1.840 from website, and put it in my perl lib path. However, it seems like ppm can not recognize it

Hello, I'm troubled by this problem these days, too. Has it been solved now? Could you please help me to solve it?

from pyrouge_for_windows.

Angela7126 avatar Angela7126 commented on July 30, 2024

@xiyan524 @AmyZhangMin Please try to copy this package in your project directly as the figure below, and see whether it will help.
you can call the MyRouge155 as:
from pyrouge import MyRouge155
image

from pyrouge_for_windows.

AmyZhangMin avatar AmyZhangMin commented on July 30, 2024

@Angela7126 Thank you. But after I tried this method, I met another problem similar to the first one.
subprocess.CalledProcessError: Command '['D:\\Strawberry\\perl\\bin\\perl', 'D:\\pyrouge\\tools\\ROUGE-1.5.5\\ROUGE-1.5.5.pl', '-e', 'D:\\pyrouge\\tools\\ROUGE-1.5.5\\data', '-c', '95', '-U', '-r', '1000', '-n', '4', '-a', '-m', 'C:\\Users\\YangYang\\AppData\\Local\\Temp\\tmpxu2daenj\\rouge_conf.xml']' returned non-zero exit status 2.
Then, I copy this command('D:\Strawberry\perl\bin\perl D:\pyrouge\tools\ROUGE-1.5.5\ROUGE-1.5.5.pl -e D:\pyrouge\tools\ROUGE-1.5.5\data -c 95 -U -r 1000 -n 4 -a -m C:\Users\YangYang\AppData\Local\Temp\tmpxu2daenj\rouge_conf.xml') and paste it in cmd.exe, it can be executed successfully and print rouge scores.
I'm now confused.

from pyrouge_for_windows.

xiongma avatar xiongma commented on July 30, 2024

@Angela7126 Did you solve this? I have same problem as this.

from pyrouge_for_windows.

Related Issues (1)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.