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.106.linux-x86_64.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7aa8962fbc2da504589e54e21e484691088d6f0d5ab09e47190d4d829d2757fb |
|
MD5 | fa7178a70f688f93a52e21c67faf5fb2 |
|
BLAKE2b-256 | 4ef3be91a52d08d404807e5c4884e66cdda4a75ff288d01a08770fcd36e6fc60 |
Close
Hashes for argument_esa_model-3.11.106-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1256b10b2f1520afa55bb13a25d95bdd264ffbd5ed87038d1bc746e4283d0524 |
|
MD5 | 47fc66417238f854b33aeae81b2faea1 |
|
BLAKE2b-256 | f2c941de21c324df9a2d7a7cee4f75330a09bb4f8b215e8acc9dc57f0499a11c |