-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from duguying/develop
Support Chinese Word Segmentation to deal with polyphone, release v0.4.0
- Loading branch information
Showing
23 changed files
with
7,576 additions
and
20,775 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
rm -rf autom4te.cache | ||
rm -rf build | ||
rm -rf include | ||
rm -rf modules | ||
|
||
rm acinclude.m4 | ||
rm aclocal.m4 | ||
rm config.sub | ||
rm configure | ||
rm configure.in | ||
rm config.status | ||
rm config.guess | ||
rm config.h | ||
rm config.h.in | ||
rm config.log | ||
rm config.nice | ||
rm Makefile* | ||
rm ltmain.sh | ||
rm libtool | ||
rm mkinstalldirs | ||
rm missing | ||
rm install-sh | ||
rm run-tests.php | ||
|
||
rm -rf *.la | ||
rm -rf src/*.lo | ||
rm -rf *.a | ||
rm -rf *.so |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
ARG_ENABLE("pinyin", "for pinyin support", "yes"); | ||
|
||
EXTENSION("pinyin", "pinyin.c \ | ||
py_hashtable.c \ | ||
py_pinyin.c"); | ||
EXTENSION("pinyin", "src/pinyin.c \ | ||
src/hashtable.c \ | ||
src/py_pinyin.c"); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,5 @@ | ||
# get the latest data # | ||
## about data ## | ||
|
||
you can get the latest data file(pinyin.inc) from the internet via run the script `getData.sh`. | ||
here is the data for pinyin-php extension | ||
|
||
``` | ||
./getData.sh | ||
``` | ||
|
||
## about pinyin-php resource build ## | ||
|
||
the raw data is in the MySQL database, I read the data from the database and build the data into three variables.They are `char* cnchar`,`char* pinyin` and `char* py`. Chinese characters is in the variable `cnchar`. Chinese PinYin characters is in the variable `pinyin`. The PinYin alphabet is in the variable `py`. |
Oops, something went wrong.