Git Product home page Git Product logo

end-to-end-parser's Introduction

End-to-end Parser for Eastern Armenian

This repository contains necessary tools to parse raw Eastern Armenian text. It has a script, run.sh, which takes raw text as an input and produces a CoNLL-U file with lemmas, morphological features, part-of-speech tags and dependency trees.

  • The parser segments the text into sentences and tokenizes them using ArmTreeBank's Tokenizer module.
  • Lemmatization, POS tagging and dependency parsing is performed by a neural network called COMBO, which is developed and open-sourced by Piotr Rybak and Alina Wroblewska from Institute of Computer Science, Polish Academy of Sciences. If you use this network, please cite their paper.
  • We have trained COMBO on the training set of the ArmTDP treebank from UD v2.3.
  • The accuracy of the parser is far from perfect. It has been trained only on ~500 sentences. The table below shows the accuracy on the test set of the same treebank.
Metric Accuracy
Lemmatization 88.05%
Part-of-speech tagging 85.07%
Morphological features 70.21%
Dependency parsing (Labelled attachment score) 55.25%

Visualization of the current parser

The model is hosted on DigitalOcean: https://parser.yerevann.com/

alt text

Instructions (for End to end parsing)

  • Make sure you have all the requirements installed
pip install -r requirements.txt
  • Clone the repo (to get the submodules don't forget to include the --recursive flag)
git clone --recursive https://github.com/Armtreebank/End-to-end-Parser.git
  • Run the following command to get the .conllu file with predictions for every sentence of the input
python3 predict.py --model_path path_to_model.pkl --input_path sample.txt --output_path sample.conllu

Instructions (for COMBO training)

cd COMBO
python3 -m src.main --mode autotrain --train train_data_path.conllu --valid valid_data_path.conllu --model model.pkl --force_trees

Acknowledgements

This project is supported by ANSEF grant Lingu-5008 and ISTC Research Grant.

end-to-end-parser's People

Contributors

martinxpn avatar sourencho avatar

Watchers

 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.