Giter VIP home page Giter VIP logo

cws's Introduction

CWS

This code implements the word segmentation algorithm proposed in the following paper.

Deng Cai and Hai Zhao, Neural Word Segmentation Learing for Chinese. (ACL 2016)

##Usage: ###- train python train.py. To train a model, first check hyperparameter settings in train.py. The training procedure will result a config file which preserves your hyperparameter settings and trained model parameters will be saved in *.npz.

###- test python test.py params.npz input_file output_path config_file. To test a trained model whose parameters is in params.npz . The corresponding configuration should be in config_file. The test procedure will read data from input_file and output result to output_path.

###- evaluate
E.g., To see the best result on PKU dataset reported in our paper, first generate the output file through our trained model ( python test.py best_pku.npz ../data/pku_test somepath best_pku_config), and then use the command ./score ../data/dic ../data/pku_test somepath.

##Dependencies: Thanks for those excellent computing tools: Theano, Numpy, Gensim

##Author: Deng Cai. Any question, feel free to contact me through my email

##Citation: If you find this code useful, please cite our paper.

@InProceedings{cai-zhao:2016:P16-1,
  author    = {Cai, Deng  and  Zhao, Hai},
  title     = {Neural Word Segmentation Learning for Chinese},
  booktitle = {Proceedings of the 54th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers)},
  month     = {August},
  year      = {2016},
  address   = {Berlin, Germany},
  publisher = {Association for Computational Linguistics},
  pages     = {409--420},
  url       = {http://www.aclweb.org/anthology/P16-1039}
}

cws's People

Contributors

jcyk avatar

Watchers

James Cloos avatar HuajieChen avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.