/synonym-recognition-by-finetune-embedding

:bird: Fine-tune Pre-trained Word Embedding for Synonym Recognition

Primary LanguagePythonApache License 2.0Apache-2.0

Synonym Recognition by Embedding

Language Licence

Relation Resource

Get Started

Prepare for synonym dataset

You can use datasets/synonyms/* or dataset else you built.

Download the embedding

Download from the above Pre-train word embedding.

Dependencies

You can install dependencies by:

pip install -r requirements.txt

Run

python main.py --train datasets/synonyms/train \
               --dev datasets/synonyms/dev \
               --test datasets/synonyms/test \
               --embedding /path/to/embedding_file \
               --outputs /path/to/outputs_dir

License

@Apache 2.0 (Except for datasets)