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.22.linux-x86_64.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9865b42f22b6396abac0fc12779c75beb587b87b99051257f73d0b401623d5a5 |
|
MD5 | ca0004dd0df48072cce7bad0d462db81 |
|
BLAKE2b-256 | af96f0abc839da3bea7a61ed2c3a4cb31a3a593091c00d8a8438024779fc96aa |
Close
Hashes for argument_esa_model-3.0.22-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a361f65d6337211d4c79156c8b2c55151d777e888509511ef25dd5c4ff073ca2 |
|
MD5 | 2917b1558353d0a7bb71854426092149 |
|
BLAKE2b-256 | bbfbd1fec229c7bc6326aa26af6a8f57999af9981aa670555c444fc9c091ec99 |