项目作者: hugo53

项目描述 :
A syntactic parser uses CYK (CKY), Earley. Best fit for English, Vietnamese.
高级语言: Python
项目地址: git://github.com/hugo53/HUsyntactic.git
创建时间: 2011-12-08T10:23:26Z
项目社区:https://github.com/hugo53/HUsyntactic

开源协议:

下载


HUsyntactic

Author : Minh-Hoang, Nguyen

Email : hoangnm[dot]53[at]gmail[dot]com

Description :
A syntactic analyzer uses CYK algorithm and
Earley algorithm

HOW TO USE?

You can use command:

  1. $ python HUsyntactic.py -a [c|e] -g grammarFile -l lexiconFile -s sentenceFile -o outFile
  2. -a : type of algorithm.
  3. c for cyk
  4. e for earley
  5. -g : name of file contains grammar rules
  6. -l : name of file contains lexcicon rules
  7. -s : name of file contains sentences
  8. -o : name of output file

Example:

  1. $ pwd
  2. HUsyntactic/src
  3. $ python HUsyntactic.py -a c
  4. -g data/ckyData/GRAMMAR.IN
  5. -l data/ckyData/LEXICON.IN
  6. -s data/ckyData/SENTENCES.IN -o data/ckyData/OUTFILE.OUT

DOCUMENTATION

Please see HUsyntactic.pdf ( It’s in Vietnamese! )

LICENSE

All HUsyntactic source files are made available under the terms of the
GNU Affero General Public License (AGPL). See GNU-AGPL-3.0 files for
details.