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.133.linux-x86_64.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9d2564bd31b50ce9adc2e51e0ae670521da79870e3a107951c43e98257f4a199 |
|
MD5 | 0cf5ae46cd5654022ad63fa15912ae82 |
|
BLAKE2b-256 | 310ee6acc5ba5cecf8b473aada184072529eb06f146353fb4f2d6d116ba6ea2a |
Close
Hashes for argument_esa_model-0.2.133-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9edc24bb68b72b70d7097461cbd71e40e22750fb7b77ac1604f5957949dfb162 |
|
MD5 | 76459feb96d52c3ecd640b6f43bf058c |
|
BLAKE2b-256 | 6f01aa1d896ca6f85c9e30ee0ff77f795c1f2e2d63fdf20ef664abfae2ae2da9 |