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.127.linux-x86_64.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 66706fe428247f5c1d7e1ca36eee08c081c6b85c72a5f1d948fd5a156678e1e4 |
|
MD5 | fb77371f4f56c081e1f4daa120b55284 |
|
BLAKE2b-256 | eb6cbfbb61535f6ce8c9ae497eb3c63620c96795f163dc9b5ba25d102b087f81 |
Close
Hashes for argument_esa_model-0.2.127-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 488e99fd751b1e028b099e5605b989fd23a36c39f67829e8ccfe76d697c05d98 |
|
MD5 | c1dc9398650be4d2f2fbeb0c5cd75c03 |
|
BLAKE2b-256 | 0714a1afe13532cf08f4e4de9c24259dfb7fb3c3956b57fd99e10250470f9a48 |