Giter Site home page Giter Site logo

m4t1ss / chunker Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 0.0 24.04 MB

A sentence chunker PHP class + visualizer for Berkeley Parser parse trees

Home Page: http://lielakeda.lv/other/chunker/

License: MIT License

PHP 81.85% CSS 18.15%
chunker syntactic-parser sentence-chunking sentence-splitting

chunker's Introduction

Chunker

This is a sentence chunker PHP class + visualizer

It includes the Berkeley Parser and an English grammar from https://github.com/slavpetrov/berkeleyparser

You can try it out here - http://lielakeda.lv/other/chunker/

Example input for visualizing with testChunker.php:

( (S (NP (NP (VBG Shifting) (NNS goods)) (CC and) (NP (NP (NNS passengers)) (PP (PP (IN from) (NP (NNS roads))) (PP (TO to) (NP (NP (ADJP (RBR less) (JJ polluting)) (NNS forms)) (PP (IN of) (NP (NN transport)))))))) (VP (MD will) (VP (VB be) (NP (NP (DT a) (JJ key) (NN factor)) (PP (IN in) (NP (DT any) (JJ sustainable) (NN transport) (NN policy.))))))) )

Options

Option Description Required
-m minimal desired length of each chunk no
-g grammar file for Berkeley Parser yes
-s input sentence yes

Example

php ChunkSentence.php -m 10 -g included/eng_sm6.gr -s "Recent works have proved that synthetic parallel data generated by existing translation models can be an effective solution to various neural machine translation (NMT) issues."

N|Solid

Publications

If you use the chunker, please cite the following paper:

Matiss Rikters and Inguna Skadina (2016). "Syntax-based Multi-system Machine Translation." In Proceedings of the Tenth International Conference on Language Resources and Evaluation (LREC 2016).

@InProceedings{RIKTERS16.156,
  author = {Matīss Rikters and Inguna Skadina},
  title = {Syntax-based Multi-system Machine Translation},
  booktitle = {Proceedings of the Tenth International Conference on Language Resources and Evaluation (LREC 2016)},
  year = {2016},
  month = {may},
  date = {23-28},
  location = {Portorož, Slovenia},
  editor = {Nicoletta Calzolari (Conference Chair) and Khalid Choukri and Thierry Declerck and Sara Goggi and Marko Grobelnik and Bente Maegaard and Joseph Mariani and Helene Mazo and Asuncion Moreno and Jan Odijk and Stelios Piperidis},
  publisher = {European Language Resources Association (ELRA)},
  address = {Paris, France},
  isbn = {978-2-9517408-9-1},
  language = {english}
 }

chunker's People

Contributors

m4t1ss avatar

Stargazers

 avatar  avatar

Watchers

 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.