Giter Site home page Giter Site logo

hankcs / sub-character-cws Goto Github PK

View Code? Open in Web Editor NEW
25.0 4.0 2.0 43.16 MB

Sub-Character Representation Learning

Home Page: https://arxiv.org/abs/1712.08841

License: GNU General Public License v2.0

Python 86.96% Shell 4.03% Perl 9.01%
representation-learning chinese-word-segmentation cws simplified-chinese traditional-chinese natural-language-processing nlp

sub-character-cws's Introduction

Sub-Character Representation Learning

Codes and corpora for paper "Dual Long Short-Term Memory Networks for Sub-Character Representation Learning" (accepted at ITNG 2018).

We proposed to learn character and sub-character level representations jointly for capturing deeper level of semantic meanings. When applied to Chinese Word Segmentation as a case example, our solution achieved state-of-the-art results on both Simplified and Traditional Chinese, without extra Traditional to Simplified Chinese conversion.

Dependencies

Quick Start

Simply run one command:

./script/run.sh pku 1

It does everything for you on the fly, including data preparation, training and test.

  • You can replace pku with msr, cityu and as.
  • The second parameter indicates model options from 1 to 6, details are listed in the next chapter.

Configuration Table

We have presented 6 models in our paper. Their configurations are shown in following table:

#. model char subchar radical tie bigram
1. baseline YES
2. +subchar YES
3. +radical YES YES
4. +radical -char YES
5. +radical +tie YES YES YES
6. +radical +tie +bigram YES YES YES YES

Performance

sighan05

Acknowledgments

  • Thanks for those friends who helped us with the experiments.
  • Corpora are from SIGHAN05, which should only be used for research purposes.
  • Model implementation modified from a Dynet-1.x version by rguthrie3.

sub-character-cws's People

Contributors

hankcs avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

sub-character-cws's Issues

what does the radical.txt mean?

As I can see, the first column is the original character, the second column is the radical list which is described in the paper. But what're the other columns, what are they used for?

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.