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.57.linux-x86_64.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | a43d1cc9a8b0e7596fe51adf8169104b4619909c4fcc1f0821d376c7a5c772b3 |
|
MD5 | 02de802cab01f70c7932921d7d75d95c |
|
BLAKE2b-256 | b35dd46bcdb68c187e29806e6f7ad4978a7554c8dec6b2cb5ce7b4db05610aa4 |
Close
Hashes for argument_esa_model-0.2.57-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f3b3e63326c7c45009d094b87443373a38ccfb1eefa1e7282e9de55049956353 |
|
MD5 | d7e38adc33da11b519d3493cd2d9bf93 |
|
BLAKE2b-256 | d13416a0ad46993bb7fde05223aaae64944c351c1a2ac4a561de638ea632571b |