An ESA implementation in python.
Project description
Get the required resources
scp -r webis@webislab40.medien.uni-weimar.de:/home/weci2587/projects/args-topic-modeling/resources .
To run the ESA-script with all terms run:
For normal ESA:
./esa-all-terms.py --similarity cos
--matrix-path <path_to_resources>/resources/esa-plain/<debatepedia|strategic-intelligence|wikipedia>.mat
--model-path <path_to_resources>/resources/esa-w2v/GoogleNews-vectors-negative300.bin
--model-vocab <path_to_resources>/resources/esa-w2v/w2v-vocab.p
--input-path <path_to_input_file>
--output-path <path_to_output_file>
For word2vec-ESA:
./esa-all-terms.py --similarity max
--matrix-path <path_to_resources>/resources/esa-w2v/<debatepedia|strategic-intelligence|wikipedia>.mat
--model-path <path_to_resources>/resources/esa-w2v/GoogleNews-vectors-negative300.bin
--model-vocab <path_to_resources>/resources/esa-w2v/w2v-vocab.p
--input-path <path_to_input_file>
--output-path <path_to_output_file>
To run the word2vec-ESA with reduced terms run:
./esa-top-n-terms.py -n <number_of_terms>
--corpus-path <path_to_resources>/resources/corpora/<debatepedia|strategic-intelligence|wikipedia>.csv
--model-path <path_to_resources>/resources/esa-w2v/GoogleNews-vectors-negative300.bin
--model-vocab <path_to_resources>/resources/esa-w2v/w2v-vocab.p
--input-path <path_to_input_file>
--output-path <path_to_output_file>
The input document must be a csv file with "|" as the separator and must contain the column "document", which is used as the input text for the ESA.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for argument_esa_model-3.11.91.linux-x86_64.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | a4f036c2774731e1dad53ea2ed45196de9fc2d42afad8aa621af348afebeb383 |
|
MD5 | e4a1b5e602da4aef1f79357ceb88fb49 |
|
BLAKE2b-256 | ac5c4cd1bbc67cb74eb04b134045db2eb5cfac099dd4cff74cde109c77f2dbe6 |
Close
Hashes for argument_esa_model-3.11.91-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 32c2a97d0c6b78bd8bed3d18fecdf50580caade10eb6b448b263cd104e7e96c4 |
|
MD5 | 73e274752878be2826c8e38059ba4646 |
|
BLAKE2b-256 | d8675af9cbe3db338c4056e1a604a20fef9b08e63c26312d7c696b0e673a0e14 |