File size: 890 Bytes
4f6613a
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
# This account is no longer in use, see [Atomicoo](https://github.com/atomicoo) for my latest works.

# Chn Text Norm

this is a repository for chinese text normalization (no longer maintained).

## Quick Start ##

### Git Clone Repo ###

git clone this repo to the root directory of your project which need to use it.

    cd /path/to/proj
    git clone https://github.com/Joee1995/chn-text-norm.git

after that, your doc tree should be:
```
proj                     # root of your project
|--- chn_text_norm       # this chn-text-norm tool
     |--- text.py
     |--- ...
|--- text_normalize.py   # your text normalization code
|--- ...
```

### How to Use ? ###

    # text_normalize.py
    from chn_text_norm.text import *
    
    raw_text = 'your raw text'
    text = Text(raw_text=raw_text).normalize()

### How to add quantums ###

打开test.py,然后你就知道怎么做了。