Giter Site home page Giter Site logo

screddy1313 / cky-parser Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 1009 KB

CKY parser for ATIS grammar

License: MIT License

Python 100.00%
cky-parser cky-algorithm cky cyk-parser cyk-algorithm atis-dataset parser recognizer nltk tree nltk-grammar python3

cky-parser's Introduction

cky-parser

  • In this project we will implement the cky (cyk) algorithm for english that acts as recognizer as well as parser.

  • We will be using NLTK for representing cfg grammars and parse trees, but parser will be generated from scratch.

Grammar :

The grammar stems from the Airline Travel Information System (ATIS), a project working on spoken dialog systems for air travel. The ATIS CFG is available in the NLTK data package, together with 98 test sentences.

Language : Python

Modules : NLTK

Problem Statement :
  • Given a test sentence find whether the ATIS grammar covers the senetence or not ( Recognizer )
  • If the test sentence is derived from the grammar, print all the different parse trees of the sentence.
  • We will be using tree module in NLTK to draw the trees.

Running the program :

In the command prompt : python cky_parser.py

  • press 1 for parser and 2 for Recogniser

  • For parser : test sentence 89 in Test Sentences would run.

  • For recogniser : All the Atis sentences will be tested

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.