-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error in running example.py #11
Comments
same problem |
Have you resolve this issue?? |
The Path is wrong. Notice that the For example:
|
Hi @tagucci @Yogayu
But I still got this error:
Could you please help me with this issue? Thanks! |
When I tried it on centos, it returns this error:
|
I had the same issue. Turns out I was missing a few perl based dependencies. You should just try running the |
In the name of God hello I run example in windows 7. ROUGE_path = 'D://MySoftWare/UniversitySoftWare/Term4/TS/Evaluate/pythonrouge-master/pythonrouge-master/pythonrouge/RELEASE-1.5.5/ROUGE-1.5.5.pl' #ROUGE-1.5.5.pl rouge = Pythonrouge(n_gram=2, ROUGE_SU4=True, ROUGE_L=True, stemming=True, stopwords=True, word_level=True, length_limit=True, length=50, use_cf=False, cf=95, scoring_formula="average", resampling=True, samples=1000, favor=True, p=0.5) summary = [[" Tokyo is the one of the biggest city in the world."]] setting_file = rouge.setting(files=False, summary=summary, reference=reference) result = rouge.eval_rouge(setting_file, recall_only=True, ROUGE_path=ROUGE_path, data_path=data_path) And get followed Error: Do the library run in windows? |
Like I said, try to run the perl script from the command line directly, and not via the pythonrouge package. You will come to know if you have any perl related issues (missing dependencies, path etc). |
In the name of God I do it and get followed Error: I install Active Perl 5.24 for install DB_File and I type Is there DB_File for windows? |
In the name of God |
In the name of god
I run ROUGE-1.5.5.pl in terminal in linux with typing
thank you |
In The name of GOD
2.I use from "https://libraries.io/github/tagucci/pythonrouge"
|
Hi
I run the example.py, and I found this error:
evaluate sumamry & reference in these dir
summary: ./sample/summary/
reference: ./sample/reference/
All metric
Traceback (most recent call last):
File "example.py", line 16, in
setting_file = rouge.setting(files=True, summary_path=summary_dir, reference_path=reference_dir)
File "/home/yingwenhao/project/pythonrouge/pythonrouge/pythonrouge.py", line 107, in setting
file_name = os.path.splitext(os.path.basename(path))[0]
UnboundLocalError: local variable 'path' referenced before assignment
I checked the code, and I guess that something is ignored. How should I deal with the problem? thx
The text was updated successfully, but these errors were encountered: