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.54.linux-x86_64.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | fd8e8566a9929ec1d9d28cc96811d919f60c1450ea214527829b8840b5138e6a |
|
MD5 | 0d7d9f718e94c6a2fe244bba4edd154e |
|
BLAKE2b-256 | 44c889aa5dd8926f2f318fa6c4a1106800fe59be9a507e381239f45490a9fcc9 |
Close
Hashes for argument_esa_model-3.11.54-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c25b4890b07c0628936cf7615b1c286f1e9d4299b1806441005a2f651b03f4c7 |
|
MD5 | 8d914cd982f2316891d35028d041f48f |
|
BLAKE2b-256 | 2e641912df6aeedb078434ca22631fa565e545328eb009e82c30b0c25db039a5 |