pltrdy / extoracle_summarization Goto Github PK
View Code? Open in Web Editor NEWExt-Oracle Summarization: extractive summarization that maximize ROUGE w.r.t. target
License: Apache License 2.0
Ext-Oracle Summarization: extractive summarization that maximize ROUGE w.r.t. target
License: Apache License 2.0
The example command in the description is not working:
$ extoracle source.txt target.txt -method greedy -output oracle.txt
Traceback (most recent call last):
File "/Users/tillmann/dev/textSum/.direnv/python-3.7.3/bin/extoracle", line 10, in <module>
sys.exit(main())
File "/Users/tillmann/dev/textSum/.direnv/python-3.7.3/lib/python3.7/site-packages/extoracle/bin/cmd.py", line 34, in main
n_thread=args.n_thread)
File "/Users/tillmann/dev/textSum/.direnv/python-3.7.3/lib/python3.7/site-packages/extoracle/extoracle.py", line 82, in from_files
"Argument [summary_length, length_oracle] "
ValueError: Argument [summary_length, length_oracle] cannot be both None/False
Also the length is very long in my outputs. Even when I specify -length 1
or -length_oracle
.
Furthermore, I am not sure if this works with other languages than English - because then it even returned double the amount of sentences of the source.
$ pip freeze | grep extoracle
extoracle==0.1
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.