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.139.linux-x86_64.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | c0b33092f7c5a00c40a631797e1f80249c2547e40f72ef4441085a03667223db |
|
MD5 | b669a41ee6f5297a73facfc14c02ff5a |
|
BLAKE2b-256 | 611f6ae3a5891e041534e3c3322ef7a111376272a4b6afb99be9a872aac48f5b |
Close
Hashes for argument_esa_model-0.2.139-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 15699ed9e5a77f98bf326e869fbd4cc0c0dafc60ad05263d241f709d960e3443 |
|
MD5 | 8cc2f2f4878c14182cfcd58db4f47aff |
|
BLAKE2b-256 | 3698dde08cafe1d57a85a92d893bb15669988f000b9103f6d75099323bd775f2 |