Giter Site home page Giter Site logo

ugramm's Introduction

Demo

ugramm.8052.ru | Swagger API Docs

Screenshot

Deployment

Run

cd service && docker-compose up

Test & Build & Run

On Ubuntu 20.04

PREFIX=firefish  # update docker-compose.yml if changed
sudo apt install -y python3 python3-pip libmecab-dev
pip install flake8 pytest
pip install -r service/backend/requirements.txt
pytest
cd service
cd third_party && docker build -t "$PREFIX/languagetool:5.7.0" . && cd ..
cd backend && docker build -t "$PREFIX/ugramm:0.2" . && cd ..
docker-compose up

See tests at service/backend/test

Task

The task is to suggest where to place commas in a given text.

Related work

Quality

Data

There are a lot of domains when we are talking about text data:

  • prose
  • encyclopedia articles
  • subtitles
  • emails
  • technical documentation
  • instant messages
  • ... etc.

All these domains have different properties. And it's hard to develop a system which performs equally well on all of them. Let's select 3 datasets which could be biased towards different domains:

Metrics

Punctuation quality could be measured in many ways:

  • Accuracy
  • Recall/Precision/F1
  • ROC-AUC

On different scales:

  • sub-word/token level
  • word level
  • sentence level

Let's use word level F1-score for all comparisons.

Models

See model training in quality/models

Graphs at Weights & Biases

Systems performance

Model \ Test set Tatoeba OSS Docs Gutenberg Total
NeMo BERT 0.805 0.701 0.636 0.655
FullStop 0.757 0.723 0.623 0.648
Ours DistilRoBERTa 0.846 0.824 0.826 0.827
Ours RoBERTa 0.868 0.851 0.864 0.862

Table 1. Word level F1-scores

More details in notebooks: quality/evaluation

ugramm's People

Contributors

nazarov-yuriy avatar

Watchers

 avatar  avatar  avatar

Forkers

trellixvulnteam

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.