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-3.11.112.linux-x86_64.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8a071ea4077471ca42f34324528827991fbbf2e1c2be42206027b3b23dc02200 |
|
MD5 | 6c1e56c8c1495f3e0a1718c9601843e0 |
|
BLAKE2b-256 | 85c84fc090bc1b235a0b08e8e7c5f61ede22688f374d875f24e75f639f776b2d |
Close
Hashes for argument_esa_model-3.11.112-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 24b1855378b6ab9732c02500c8f8709bf653fa6c2144112ef281f2ecf9b5d236 |
|
MD5 | dd371802d7fd0357288b32abcb0c4d0d |
|
BLAKE2b-256 | c7524025a289067d4550da28a38b1965b299d0fa7f6b4d0f0b92be6b0d57ffc1 |