Coder Social home page Coder Social logo

segmenter's Introduction

Segmenter

Universal segmenter, written by Y. Shao, Uppsala University

News

We published a TACL paper on more information and analysis of the segmenter. (https://transacl.org/ojs/index.php/tacl/article/viewFile/1446/315)

The segmenter achieves the best overall word segmentation accuracy and second best overall sentence segmentaton accuracy at the ConLL2018 shared task. (http://universaldependencies.org/conll18/results-words.html)

The segmenter is applied to the MLP 2017 shared tasks (http://mlp.computing.dcu.ie/mlp2017_Shared_Task.html) and achieved outstanding results on all the datasets. (2017.8.13)

Universal Dependencies

Training

Segmentation:

python segmenter.py train -p ud-treebanks-conll2017/UD_English -m seg_Eng

Joint sentence segmentation:

python segmenter.py train -p ud-treebanks-conll2017/UD_English -ss -m ss_seg_Eng

Decoding

python segmenter.py tag -p ud-treebanks-conll2017/UD_English -m ss_seg_Eng -r ud-raw/en_pud.txt -opth tokenized/en_pud.txt

MLP 2017

(Single)

Training

For Basque Finnish Kazakh Marathi Uyghur and Farsi

python segmenter.py train -p mlp/basque -f mlp1 -ng 3 -m basque

(The training and development sets of Basque are in directory mlp/basque)

For Vietnamese

python segmenter.py train -p mlp/basque -f mlp1 -ng 3 -sea

For Chinese and Japanese

python segmenter.py train -p mlp/tchinese -f mlp2 -ng 3 -m tchinese

Decoding

For Basque Finnish Kazakh Marathi Uyghur Farsi and Vietnamese

python segmenter.py tag -p mlp/basque -f mlp1 -m basque -r testset/basque_raw.txt -opth segmented_mlp/basque_single_out.txt

For Chinese and Japanese

python segmenter.py tag -p mlp/tchinese -f mlp2 -m tchinese -r testset/tchinese_raw.txt -opth segmented_mlp/tchinese_single_out.txt

(Ensemble)

Training

python segmenter.py train -p mlp/basque -f mlp1 -ng 3 -m basque_1

python segmenter.py train -p mlp/basque -f mlp1 -ng 3 -m basque_2

python segmenter.py train -p mlp/basque -f mlp1 -ng 3 -m basque_3

python segmenter.py train -p mlp/basque -f mlp1 -ng 3 -m basque_4

Decoding

python segmenter.py tag -ens -p mlp/basque -f mlp1 -m basque -r testset/basque_raw.txt -opth segmented_mlp/basque_ensemble_out.txt

Reference

Yan Shao, Christian Hardmeier, and Joakim Nivre. 2018. Universal word segmentation: Implementation and interpretation. Transactions of the Association for Computational Linguistics 6:421โ€“435.

https://transacl.org/ojs/index.php/tacl/article/viewFile/1446/315

Yan Shao. "Cross-lingual Word Segmentation and Morpheme Segmentation as Sequence Labelling" arXiv preprint arXiv:1709.03756 (2017).

https://arxiv.org/pdf/1709.03756.pdf

segmenter's People

Contributors

jowagner avatar yanshao9798 avatar

Watchers

 avatar  avatar  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.