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.0.26.linux-x86_64.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | e69913c61cdc56b26e24ee20fadcb995745e460f585238606de94cbd0c0e2521 |
|
MD5 | 0c073748ba880da269ee02353e3c3e89 |
|
BLAKE2b-256 | eff0970cf592fa08b19a654e7efa14870e9b97faaee0547fe786022d6d983333 |
Close
Hashes for argument_esa_model-3.0.26-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 768213dd6bb0b700e40abb0826e6dd69849d467691a3b5d22bc4268fd3afd0a1 |
|
MD5 | 04475d056f2116f1f704e073dd5144a8 |
|
BLAKE2b-256 | 3fe61895e57d730dce521546cc7be6ed4bcd8e49c8a4a6bd6641b480d421b6f0 |