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-0.2.37.linux-x86_64.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1e17539cf07480866d9249872b89670312e2f2b9168c6bae6bd723579bf72d24 |
|
MD5 | 9c91f0beaa78f66020893ea2fc0bb773 |
|
BLAKE2b-256 | 29a50c7192f45c7b849009080c03b33d1bba031f973f9ef8d6a3cf3677864124 |
Close
Hashes for argument_esa_model-0.2.37-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b226948e2b3f9fa527e30a174df802c465e22a6dcaa05eff42af1028f4fcb4b9 |
|
MD5 | 01c9274ad658175a073bd027e116599c |
|
BLAKE2b-256 | 48eb776a7b867d500616e8a72a18c7613dbdfb523d4ef88e6ad78c315aa9ef62 |