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.46.linux-x86_64.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 21f1eebc68f1346fb3c7092a18c522fe19a26e2f43ff17ab83ae0047a49f7318 |
|
MD5 | 77e0d60169b272da97bfc3eb939fea5f |
|
BLAKE2b-256 | 4dec8ff06c22e404cb7a4e03e4c3f49aaad407c98a70f3e18e9c3863c1a2cce0 |
Close
Hashes for argument_esa_model-0.2.46-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 15dd253fa63909dd67e7189aa910ea4f10dbe42fce29b41bed61d0a438843de7 |
|
MD5 | 475ba4bea9ddc3513aa764bbbd4db3c6 |
|
BLAKE2b-256 | 4193a89c636f16e47f99ebc5f16dfaf8535221254676d8a848f0bbdde2cbb081 |