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.69.linux-x86_64.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | fc028cdfa5a73dcdcece87c475eec2cc8a46cdf22ed9ba4add6747ebd55f950e |
|
MD5 | 5e05b60f817808f22c1e38b0a31ce318 |
|
BLAKE2b-256 | 1ee1d2a45dbc00a0cd48d7a3e5265c98ba094384d19436fbcf460c36b6812e16 |
Close
Hashes for argument_esa_model-0.2.69-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c1771a3190d71858ddc5fb18ee891cdb8ada9a182479348cb2f8792ed9ab449f |
|
MD5 | 2e71dcfc329c520a95a8fec8c2445020 |
|
BLAKE2b-256 | 77eb6492e1278b43926c8972d2603333b19e570e8b0c58abab7b7accb1f12d08 |