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.19.linux-x86_64.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5677af929ba8259b51a0d4bfd37f2f83890578d40b99aaa46e66a7015cd78029 |
|
MD5 | 7d3602f3259f3b81035806f33118b592 |
|
BLAKE2b-256 | 7e65638ae768b5a5e42d83083d4e5733701354b7655b644594949391a0716924 |
Close
Hashes for argument_esa_model-3.0.19-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a86ded53ece209037f5837120834a0f0232b7a039f75b32c4044643624a6bc1c |
|
MD5 | fcf45f2829a638b57ace48253a6fa73d |
|
BLAKE2b-256 | 61e4162c290002ab1b985aabf7c771e10bef30f1c3b987e915c3602e5e21e990 |