LitMind Dictionary(https://dictionary.litmind.ink) is an open-source online generative dictionary that takes a word and context containing the word as input and automatically generates a definition as output.
The overall workflow of LitMind Dictionary
The definition generation model (DGM) shown in the figure below is the core component of LitMind Dictionary. It is used to automatically generate the definition of a given word. The whole model is a transformer based encoder-decoder model, where the encoder is initialized with BERT.
LitMind Dictionary's web interface is developed based on the VUE framework. You may install npm package management tool first, and run the following commands to run our web interface locally.
cd web
# init the project and install modules
npm install
# local run
npm run dev
- tornado
- requests
- sqlalchemy
- captcha
- numpy
After installing the dependency packages, you can run the code using the command:
cd server
python app.py