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.125.linux-x86_64.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | d644471e07c88c8259c2c52b0c43e6863cab4f03960e4e2bd1a6c70defdc23a5 |
|
MD5 | d65ee469fe84b2c040c0111b01b20e3f |
|
BLAKE2b-256 | f3d35b73cbdad4596d6aa6095d185d4525a9ad554ef80d2c28d4d8d05cd65873 |
Close
Hashes for argument_esa_model-0.2.125-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1e88c3bfbcb4bf7d18338f99bfc0dbb1be4ca887fc7fca90783e0670852ec62b |
|
MD5 | 575078a4df95f6e114d39d22799c39af |
|
BLAKE2b-256 | c255746a68348dee2a3a2c4a5a28db3d840ce3e81ee1f2d9b259149d0daf4bcd |