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.17.linux-x86_64.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 029d08a48eae6ccb53be2412ef0b9b4e92a149010683a817aad79b7967d6545c |
|
MD5 | e6d0e2f04728815604710de18dab5c9f |
|
BLAKE2b-256 | 08a5a85a5cd2b4d2fff16d3f8792f0317b3d6973303a72e59b2ef3f430fe9ced |
Close
Hashes for argument_esa_model-3.0.17-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c7889f464b2ca0e9f29bc52f9c187a79e1ff5979d0bb652b4fc54d1bce3f30a7 |
|
MD5 | 8cd8def7cf601d8c95fb081f6ea795ba |
|
BLAKE2b-256 | 8289936bd5dbc1663b4cfb08dc9f61b9ef0689b5089e538c41aaa3c43a87a404 |