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.158.linux-x86_64.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 996bfff3e066bbdee9d7a8b9ae4273fd77978ce950026f37deacf5c6686d4f7b |
|
MD5 | 82a8e268bb2afb831f7d7a2ee6af2477 |
|
BLAKE2b-256 | 1952dda87ee4c69919f6e0baa838d1ba3bbccb8aa7585f488af3524475b89e67 |
Close
Hashes for argument_esa_model-0.2.158-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0a1d06c78a8b1e25a6d48b2cee3a1dce0d0166c7939179a52e5e9dc52db2b2f8 |
|
MD5 | 3d31b374c9fc0dff81e4d15182543c95 |
|
BLAKE2b-256 | 2f94303038b30b3d4ff08ccf9423df6d8b2c7eff13556ba1b0348df7e022557f |