- Install spaCy with Japanese support.
pip install -U pip setuptools wheel
pip install -U spacy
python -m spacy download ja_core_news_sm
- Install Node.js. The easiest way is using nvm: https://github.com/nvm-sh/nvm
- Install yarn.
npm install --global yarn
- Install JavaScript dependencies.
yarn install
- Prepare the environment variables. Copy the
.env.example
file to.env
. - Download the JMdict dictionary file into the
dict
directory. The file can be downloaded from: http://ftp.edrdg.org/pub/Nihongo/JMdict.gz - Generate the
dict.json
file.
yarn nx serve generate-dict-json --watch=false
Run all the tests:
yarn jest --setupFiles=dotenv/config
Note that the tests were created for the version of the JMdict dictionary file from 2022-12-08.
You can generate preview files in both plain text and LaTex formats using the following command:
yarn nx serve preview --watch=false
This will generate the preview files in dist/preview
.
To compile the LaTex files, please use LuaLaTex.
The sentences used in the preview are listed in apps/preview/src/main.ts
.
✨ This workspace has been generated by Nx, a Smart, fast and extensible build system. ✨
Run nx graph
to see a diagram of the dependencies of the projects.
Run npx nx connect-to-nx-cloud
to enable remote caching and make CI faster.
Visit the Nx Documentation to learn more.