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.29.linux-x86_64.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | ad6e32a5711b24ae24be315457c521f51f1f8f981578e927c83824d58c4b3892 |
|
MD5 | 3552a15decf8807d483430e8b895115f |
|
BLAKE2b-256 | 0a66e0a0846fb4160c221161fc453c4adbc8daf97843d2074e58e63f0b9f7588 |
Close
Hashes for argument_esa_model-3.0.29-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f92101fa088e5b6a0a53a8d75941f2ac88f63d2a4d353d975d61e62af1cc9ae8 |
|
MD5 | bcdb454b170d7c23219a301014284f57 |
|
BLAKE2b-256 | a32f05568efab73f8ec781dfd91b80ec0701f7d005369b02f31df80a20b553b7 |