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.99.linux-x86_64.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | c5dee9fbb8820d11e34a252f14274f4413f7ca2280a28131637959e816c9fe2b |
|
MD5 | ed00f593db2e0ec7c7f3d1e278ec6418 |
|
BLAKE2b-256 | 5f314a38503dee847892e0f0bbb2a6f51e11005870069c4310504c1339c626cf |
Close
Hashes for argument_esa_model-0.2.99-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bee351197d12269353bdd942b57fcad127b12876a7156ee830a3c1106e1c7057 |
|
MD5 | 75c4e77c0a20c778987b65e2ea3d7f1e |
|
BLAKE2b-256 | 76148d975d92659078b0aff2aac2063d2b2c63ecd886b65280755e6f6d66d6e7 |