- 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.examplefile to.env. - Download the JMdict dictionary file into the
dictdirectory. The file can be downloaded from: http://ftp.edrdg.org/pub/Nihongo/JMdict.gz - Generate the
dict.jsonfile.
yarn nx serve generate-dict-json --watch=falseRun all the tests:
yarn jest --setupFiles=dotenv/configNote 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=falseThis 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.