Japanese version README-ja.md
sudo apt-get install build-essential for Ubuntu, orconda install -c conda-forge cxx-compilerconda install -c conda-forge cmakeBuild and install python module.
$ sudo apt install build-essential cmake libboost-system-dev libboost-thread-dev libboost-program-options-dev libboost-test-dev libeigen3-dev zlib1g-dev libbz2-dev liblzma-dev
$ git clone https://github.com/kpu/kenlm
$ cd kenlm
$ python setup.py bdist_wheel
$ python -m pip install -U dist/kenlm*.whl
$ sudo apt install sentencepiece
ja language)$ bash download_lm.sh
Setup python environment using conda.
We need to create two conda environment, since spacy-transformers module(used in ginza module) requires older transformers version, which does not support Llama class(fail to import LlamaTokenizer from transformers)
$ conda create -n jp-llama-experiment python=3.10
$ conda activate jp-llama-experiment
$ python -m pip install -r requirements.txt
$ conda deactivate
$ conda create -n jp-llama-experiment-nlp python=3.10
$ conda activate jp-llama-experiment-nlp
$ python -m pip install -r requirements-ja-nlp.txt
This is a required stop to train Tokenier, build KenLM model, etc.
See 00_download_dataset for details.
01_prepare_dataset02_normalize/03_clean_step1/04_lm_scoring/05_dedup/W.I.P.
cc100 ja で日本語 tokenizer を huggingface tokenizers で train するメモ https://zenn.dev/syoyo/articles/8647ae42a3be63
for details(in Japanese)
Train Japanese Tokenizer from cc100 ja.
It will download 40 GB of cc100 ja datset(75 GB uncompressed).
train_jp_tokenizer.py
128 GB CPU memory is required to train Japanese Tokenizer. After downloading
T.B.W.
This step take a time to train.
T.B.W.
T.B.W.
MIT license unless licensing terms is not explicitly denoted. Some scripts are licensed under Apache 2.0 or BSD.
248 commits
C
63.0%
C++
32.2%
Python
2.1%
Cuda
1.4%
Japanese version README-ja.md
sudo apt-get install build-essential for Ubuntu, orconda install -c conda-forge cxx-compilerconda install -c conda-forge cmakeBuild and install python module.
$ sudo apt install build-essential cmake libboost-system-dev libboost-thread-dev libboost-program-options-dev libboost-test-dev libeigen3-dev zlib1g-dev libbz2-dev liblzma-dev
$ git clone https://github.com/kpu/kenlm
$ cd kenlm
$ python setup.py bdist_wheel
$ python -m pip install -U dist/kenlm*.whl
$ sudo apt install sentencepiece
ja language)$ bash download_lm.sh
Setup python environment using conda.
We need to create two conda environment, since spacy-transformers module(used in ginza module) requires older transformers version, which does not support Llama class(fail to import LlamaTokenizer from transformers)
$ conda create -n jp-llama-experiment python=3.10
$ conda activate jp-llama-experiment
$ python -m pip install -r requirements.txt
$ conda deactivate
$ conda create -n jp-llama-experiment-nlp python=3.10
$ conda activate jp-llama-experiment-nlp
$ python -m pip install -r requirements-ja-nlp.txt
This is a required stop to train Tokenier, build KenLM model, etc.
See 00_download_dataset for details.
01_prepare_dataset02_normalize/03_clean_step1/04_lm_scoring/05_dedup/W.I.P.
cc100 ja で日本語 tokenizer を huggingface tokenizers で train するメモ https://zenn.dev/syoyo/articles/8647ae42a3be63
for details(in Japanese)
Train Japanese Tokenizer from cc100 ja.
It will download 40 GB of cc100 ja datset(75 GB uncompressed).
train_jp_tokenizer.py
128 GB CPU memory is required to train Japanese Tokenizer. After downloading
T.B.W.
This step take a time to train.
T.B.W.
T.B.W.
MIT license unless licensing terms is not explicitly denoted. Some scripts are licensed under Apache 2.0 or BSD.
248 commits
C
63.0%
C++
32.2%
Python
2.1%
Cuda
1.4%