Skip to content

Latest commit

 

History

History
66 lines (46 loc) · 1.81 KB

README.md

File metadata and controls

66 lines (46 loc) · 1.81 KB

Analyzer

Installation

  1. Install spaCy with Japanese support.
pip install -U pip setuptools wheel
pip install -U spacy
python -m spacy download ja_core_news_sm
  1. Install Node.js. The easiest way is using nvm: https://github.com/nvm-sh/nvm
  2. Install yarn.
npm install --global yarn
  1. Install JavaScript dependencies.
yarn install
  1. Prepare the environment variables. Copy the .env.example file to .env.
  2. Download the JMdict dictionary file into the dict directory. The file can be downloaded from: http://ftp.edrdg.org/pub/Nihongo/JMdict.gz
  3. Generate the dict.json file.
yarn nx serve generate-dict-json --watch=false

Tests

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.

Preview

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.

Understand this workspace

Run nx graph to see a diagram of the dependencies of the projects.

Remote caching

Run npx nx connect-to-nx-cloud to enable remote caching and make CI faster.

Further help

Visit the Nx Documentation to learn more.