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.67.linux-x86_64.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | aa81c7da74019b7d0838c1e5cf6a261fea6418a02ec0634f11023fcd73015db0 |
|
MD5 | 87a53b69bb2ec02aed35fa655812ed39 |
|
BLAKE2b-256 | cc01bb39b567481ef6026aaff3c0cb1d97bd88ef212ecdb748e9435c0d492974 |
Close
Hashes for argument_esa_model-0.2.67-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | eed05adc3d560e163e45bbfebbf706ba6fbda01e8b57a3052fe5ef86916a0eeb |
|
MD5 | 946f17f606cbd2165cf28cf1a65cc637 |
|
BLAKE2b-256 | 6ff10873367f211bb8b654d80f2770c4628d269d196df5ec30ef3bf7cbaba67a |