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.39.linux-x86_64.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 37a92444caea08b0922052defdc792e70ee7cda6c94cbfb7ab6b17b62ded492d |
|
MD5 | 023a9ca15df5c63c4223d8569c95e946 |
|
BLAKE2b-256 | 58194831816846cfb0b959cc351fc9e22dc689d4cd74959c889b5496a7901398 |
Close
Hashes for argument_esa_model-0.2.39-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9929415419eb6eff6fc77207765b8bbed3cf2baa301de59888d8f99d63d9861e |
|
MD5 | 23de7b9974169c4be6e7a39c1d98557b |
|
BLAKE2b-256 | 45b98ba25450f2c2d4494ed70a4ca5d89c76a137d50cabdace0075cd921c6533 |