Skip to content
forked from minixalpha/PyCWS

Tools used to do Chinese Word Segmentation

Notifications You must be signed in to change notification settings

basilwang/PyCWS

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 

Repository files navigation

#Requirements:

  • Ubuntu 12.04
  • Python 2.7.3
  • Perl 5

File Description:

src/cwsFMM.py -- source code of tool cwFMM

src/pku_training.utf8 -- training data

src/pku_test.utf8 -- test data

socre/score -- tools to socre the result

socre/pku_test_gold.utf8 -- gold data

ref -- reference papers of the project

#Tool:

cwsBMM

Description:

Using Backward Maximum Match(BMM) algorithm to do Chinese Word Segamentation

=== TOTAL TRUE WORDS RECALL: 0.924

=== TOTAL TEST WORDS PRECISION: 0.897

=== F MEASURE: 0.910

Usage:

python cwsBMM.py training_file test_file result_file

perl score training_file gold_file result_file > score_file

Notice: All the data and the tool score come from:http://sighan.cs.uchicago.edu/bakeoff2005/

cwsFMM

Description:

Using Forward Maximum Match(BMM) algorithm to do Chinese Word Segamentation

=== TOTAL TRUE WORDS RECALL: 0.920

=== TOTAL TEST WORDS PRECISION: 0.895

=== F MEASURE: 0.907

Usage:

python cwsFMM.py training_file test_file result_file

perl score training_file gold_file result_file > score_file

Notice: All the data and the tool score come from:http://sighan.cs.uchicago.edu/bakeoff2005/

About

Tools used to do Chinese Word Segmentation

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 71.1%
  • Perl 28.9%