This is a library to deal with the Chinese-Word-Segmentation issus.Actually, it can alse be used to deal with the segmentation issus of other languages, once you added the dictionary into the WordSegment
.
Check the following details to integrate this library into your project.
There are several self-made-dictionaries, you can download them by clicking self-made-dictionary. And call addDictionary(string filePath)
to add them into you WordSegment
instance.
1: add all the files in objective-c to your project.
2: add import "WordSegment.h"
into the head file in the class you will use this library
3: call [WordSegment addDictionary:dictionaryFile]
to add dictioanry file your download from self-made-dictionary.
4: call [WordSegment segment:sentence]
to segment the input sentence into seperate words.
1: add all the files in java to your project.
2: add import ChineseWordSegment.WordSegment
in the class you will use this library,
3: call WordSegment.addDictionary(dictionaryFile)
to add dictioanry file your download from self-made-dictionary.
4: call WordSegment.segment(sentence)
to segment the input sentence into seperate words.
1: add all the files in csharp to your project.
2: add using ChineseWordSegment.WordSegment
in the class you will use this library,
3: call WordSegment.addDictionary(dictionaryFile)
to add dictioanry file your download from self-made-dictionary.
4: call WordSegment.segment(sentence)
to segment the input sentence into seperate words.
You can access this Segmentaton Server by sending a GET
request at http://218.241.10.190:8086/SegmentServer.svc/segments/测试内容
(replace the chinese content by yours). Notice, the segmentation results are not so correct , cause the server many not loads enough dictionary.
You can contract me with my email([email protected]), or visit my facebook(https://www.facebook.com/people/Hery-Long/).