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.58.linux-x86_64.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 28b0e73ce5095fe85432fa17d90c5e9c80a4cb0265c3b94425214d3e0d504193 |
|
MD5 | 61af92eb782a4b28d2f1659b71d79b13 |
|
BLAKE2b-256 | 3bea740f32a1c234464604e051c543fd7e3d027938cd70f24bc56c150a931fd7 |
Close
Hashes for argument_esa_model-0.2.58-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 22f3c6fff25df7cffafa1d367f250209ed9e65b2911da6921252a116078af7dd |
|
MD5 | 382c0c77312a69c7d35b62d0407ef46c |
|
BLAKE2b-256 | 8887333444ac411b8318bf0ae75b7e77f321992c876dffd3f0b576e176ed3167 |