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.115.linux-x86_64.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2cb87f236de7d5bb9307a41def025564661443c09473304b7556b1fe260e0c53 |
|
MD5 | 362d527d020b7d5f86b9abb666f08ca9 |
|
BLAKE2b-256 | 8578415905d0ae28190c52bb062f84f36e5e6edc77ed51f7bacf16649ff2f1f2 |
Close
Hashes for argument_esa_model-0.2.115-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f4eafe0a6c714afe04623501031a1e9b6e05195ba912c95ba3993436f0871eef |
|
MD5 | 6756382edd826cb7624c525c0b5b44c7 |
|
BLAKE2b-256 | 49c1fbe89b8ffe999e4a1642cb87810317b9f7a3ad053f6a72aee29b3bfb3818 |