File size: 1,935 Bytes
1642eb7
 
 
 
 
 
 
 
 
09dea9e
1642eb7
 
 
 
 
 
a22686b
1642eb7
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
---
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)
```