GithubHelp home page GithubHelp logo

gimyboya / cky-parsing-algorithm-demo Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 3.81 MB

CKY parsing algorithm demo made with vue

Home Page: https://cyk.netlify.com

License: MIT License

JavaScript 33.29% HTML 2.65% Vue 64.06%

cky-parsing-algorithm-demo's Introduction

CKY parsing algorithm

Demo can be found here

This demo shows how a CYK algorithm works

How Does it work

There two inputs on the web application:

  • Grammar input: this is pre-filed with a default context free grammar in Chomsky Normal Form Grammar(CNFG).
  • Sentence input: this is where you try sentence against your context free grammar, we provided few examples of valid and invalid sentences against the default context free grammar.
  • The CFG used in the project is described in the section below. Any other CFG can also be used.
  • Conversion of CFG to CNFG is done manually. The program recognizes and accepts only CNFG and not CFG directly.

TODO

  • Skipp empty cells for a better performance
  • Add controlled animation to show how the algorithm work step by step

Developers

For those who want to use this project bellow are the commands you need

Project setup

yarn install

Compiles and hot-reloads for development

yarn run serve

Compiles and minifies for production

yarn run build

Run your tests

yarn run test

Lints and fixes files

yarn run lint

Run your end-to-end tests

yarn run test:e2e

Run your unit tests

yarn run test:unit

Customize configuration

See Configuration Reference.

Credits

The CNFG along with the example sentences where taken from this repo made by @abhijeetchopra

cky-parsing-algorithm-demo's People

Stargazers

 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.