Giter VIP home page Giter VIP logo

gec_analyzer's Introduction

GEC Analyzer

GEC Analyzer is a visualizer for Grammtical Error Correction efficiently.

  • You can see the error correction easily.
  • You can narrow down your search by error type (ERRANT definition).
  • Because GEC Analyzer visualizes multiple references and hypotheses, you can analyze which error corrections are true, and which corrections that are different from other GEC systems.

Install

python >=3.7

pip install -r requirements.txt
python -m spacy download en

Usage

python run.py --orig <orig file> --hyps <output files> --refs <reference files>

Then, please go to http://127.0.0.1:5000/.

  • <output files> and <reference files> can be multiple.
  • The format of each input file can be either M2 format or raw text. Note that you must use the .m2 extension for a M2 format file.
  • M2 format can contain multiple references, but GEC Analyzer will display all of them.
  • You can specify a mixture of raw text and M2 format files.
  • If you specify raw text for --hyps or --refs, please also specify --orig. If you specify only M2 format files, --orig is not needed.

Demo

  1. Use raw text files.

    python run.py \
    --orig demo/orig.txt \
    --refs demo/ref.txt \
    --hyps demo/hyp.txt
  2. Use M2 file format files (--orig is not needed).

    python run.py \
    --refs demo/sample.m2 \
    --hyps demo/sample.m2
  3. Use multiple raw text files for each option.

    python run.py \
    --orig demo/orig.txt \
    --refs demo/ref.txt demo/ref.txt \
    --hyps demo/hyp.txt demo/hyp.txt
  4. Use mixture of M2 and raw text files for each option (This may be a rare case...).

    python run.py \
    --orig demo/orig.txt \
    --refs demo/sample.m2 demo/ref.txt \
    --hyps demo/sample.m2 demo/hyp.txt

gec_analyzer's People

Contributors

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