vibrato-models / README.md
ryan-minato's picture
Update README.md
09dea9e verified
---
language:
- ja
tags:
- vibrato
---
# Vibrato Model Archive
This repository hosts all models from the Vibrato([url](https://github.com/daac-tools/vibrato)) GitHub release.
Models that were compressed using zstd have already been decompressed, so they are ready for direct download and use.
> Important: This repository deliberately does not provide a unified license because it contains models under different licensing terms.
> While most models have been detected to use the BSD license, some do not have a standard license.
> It is recommended to check the license file in each folder before using the models.
For those seeking models under the BSD license, you can visit the following repository ([ryan-minato/vibrato-models-bsdonly](https://huggingface.co/ryan-minato/vibrato-models-bsdonly)).
## Available Models
- bccwj-suw+unidic-cwj-3_1_1+compact-dual
- bccwj-suw+unidic-cwj-3_1_1+compact
- bccwj-suw+unidic-cwj-3_1_1-extracted+compact-dual
- bccwj-suw+unidic-cwj-3_1_1-extracted+compact
- bccwj-suw+unidic-cwj-3_1_1
- ipadic-mecab-2_7_0-small
- ipadic-mecab-2_7_0
- jumandic-mecab-7_0
- naist-jdic-mecab-0_6_3b
- unidic-cwj-3_1_1+compact-dual
- unidic-cwj-3_1_1+compact
- unidic-cwj-3_1_1
- unidic-mecab-2_1_2
## Usage
```python
from huggingface_hub import hf_hub_download
import vibrato
# Load tokenizer from `.cache/hf`
model_path = hf_hub_download("ryan-minato/vibrato-models", "<<model_name>>/system.dic")
with open(model_path, "rb") as f:
tokenizer = vibrato.Vibrato(f.read())
text = """\
ใ€Œๅ››ๅไบŒใ ใจ!ใ€ใƒซใƒผใƒณใ‚ฏใ‚ฉใƒผใƒซใŒๅซใ‚“ใ ใ€‚
ใ€Œไธƒ็™พไบ”ๅไธ‡ๅนดใ‹ใ‘ใฆใ€ใใ‚Œใ ใ‘ใ‹?ใ€
ใ€Œไฝ•ๅบฆใ‚‚ๅพนๅบ•็š„ใซๆคœ็ฎ—ใ—ใพใ—ใŸใ€ใ‚ณใƒณใƒ”ใƒฅใƒผใ‚ฟใŒๅฟœใ˜ใŸใ€‚
ใ€ŒใพใกใŒใ„ใชใใใ‚ŒใŒ็ญ”ใˆใงใ™ใ€‚็Ž‡็›ดใชใจใ“ใ‚ใ€ใฟใชใ•ใ‚“ใฎใปใ†ใง็ฉถๆฅตใฎ็–‘ๅ•ใŒไฝ•ใงใ‚ใ‚‹ใ‹ใ‚ใ‹ใฃใฆใ„ใชใ‹ใฃใŸใจใ“ใ‚ใซๅ•้กŒใŒใ‚ใ‚‹ใฎใงใ™ใ€
"""
tokenizer.tokenize(text)
```