File size: 1,670 Bytes
6fe15c7
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
56
57
58
59
---

language:
- ko
- ja
- en
license: apache-2.0
tags:
- text-normalization
- g2p
- tts
- bert
- zero-overhead
- int8
- onnx
metrics:
- cer
- accuracy
---


# SNAP Multilingual G2P & Text Normalization Models

High-performance, zero-dependency C/C++ & Python inference engine models for Multilingual Text Normalization (ITN/TN) and G2P (Grapheme-to-Phoneme) conversion.

## πŸ“¦ Repository Layout

```

snap-models/

β”œβ”€β”€ manifest.json                             # Root version & variant controller

β”œβ”€β”€ README.md                                 # Model card documentation

β”‚

β”œβ”€β”€ ko/                                       # Korean Models & Lexicons

β”‚   β”œβ”€β”€ dictionaries/v1.0.0/                  # Independent Lexicon Versioning

β”‚   └── model_variants/kcbert-base-int8/v1.0.0/ # Backbone Model & Probe Heads

β”‚

β”œβ”€β”€ ja/                                       # Japanese Models & Lexicons

β”‚   β”œβ”€β”€ dictionaries/v1.0.0/

β”‚   └── model_variants/ja-kanji-bert-int8/v1.0.0/

β”‚

└── en/                                       # English Models & Lexicons

    β”œβ”€β”€ dictionaries/v1.0.0/

    └── model_variants/en-bert-base-int8/v1.0.0/

```

## πŸš€ Quick Usage (Python)

```python

from snap import PhonologyKR



# Engine automatically parses manifest.json and loads active_version

frontend = PhonologyKR(models_dir="./models")

result = frontend.normalize("2024λ…„ 5μ›” 28일 μ˜€ν›„ 3μ‹œμ— λ§Œλ‚©μ‹œλ‹€.")

print(result["phonology"])

# Output: "μ΄μ²œμ΄μ‹­μ‚¬λ…„ μ˜€μ›” μ΄μ‹­νŒ”μΌ μ˜€ν›„ μ„Έμ‹œμ— λ§Œλ‚©μ”¨λ‹€."

```

## πŸ“œ License

Apache-2.0 License.