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.11.37.linux-x86_64.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 53d8bb0cb82d0d065b46fa9ca2fbbeea3e8a1d1608b25ddb7fbb23c96a2ea792 |
|
MD5 | 32338e71ed276bb4dc8c8da56fea6db7 |
|
BLAKE2b-256 | cee0ade1ef045a5bbf8d19d4af5b884fc1c83de9d5078bf4b66696e6183782df |
Close
Hashes for argument_esa_model-3.11.37-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1030e64a43cbcc6bcff525437d23e0c00b2623868974df542f6586da9ad5c91d |
|
MD5 | 4383c3b60dbcbfaf1b29ff4303aa6803 |
|
BLAKE2b-256 | b6e5b9c7af88a10aa766253c27a35f2e6423c107103e49708b3b22d5de396896 |