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.103.linux-x86_64.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | f1b8334360f4d81263f1c6aafb0eec2e2b9dec996f2ec4df32533dd0a880d561 |
|
MD5 | 69c813be7650bbdfe78acbf71b5ddb60 |
|
BLAKE2b-256 | 4b9e5a8922c2f1b348351813087350517a58b08b663a018747f4ab51a7d26951 |
Close
Hashes for argument_esa_model-0.2.103-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 09df3e9b5e273e0873893acc10cd8ae96d2d8bb50a8fe51f1acb6e739f3658dc |
|
MD5 | 27361ce8ed1b9fb258d4691cbdad753f |
|
BLAKE2b-256 | 9785b6c255126de4d600bd177113be1f5742a6b74fbc863f902ac6f51ce7a7c7 |