Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

CKY parser for ATIS grammar

License

NotificationsYou must be signed in to change notification settings

screddy1313/cky-parser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

  • We will be usingNLTK 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.TheATIS 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


[8]ページ先頭

©2009-2025 Movatter.jp