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.70.linux-x86_64.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | f7bde1976d328bb49ff7e201c9cffa045fa0e9697643dd0747d70122e074d066 |
|
MD5 | c134d591a6f9cbb007b90ab43919384e |
|
BLAKE2b-256 | 0eec9ae67cb03a42c21c866c41a416e57f49d3537299beec569d907f38d86e85 |
Close
Hashes for argument_esa_model-3.11.70-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 320315d2aeceb7a9e70428231b55deb49c9b1ed37c3e094f7aaf4c7d1e93eabd |
|
MD5 | 1547afcfd28b7a2ec58b842f8d22690d |
|
BLAKE2b-256 | 0d114a2566047c99582f7cf8468363512a21776175ba471b8877f338bb6a2799 |