-
Notifications
You must be signed in to change notification settings - Fork 4
TuanAnhLe_GramEng4Dummies
Don't know where to start? Try to start here!
[This page is only a draft]
Setup development environment can be a tricky tasks. Here are a few useful pages:
-
Install Logon (you will have everything you need to develop a grammar)
-
Install Emacs
For Fedora (Redhat, etc.)yum install emacs
For Ubuntu (Debian, Mint, Pinguy, etc.)
sudo apt-get install emacs
-
Try to run logon by pressing [ESC] then [x] then type "logon" then hit [ENTER]
-
Some useful keyboard shortcut for Emacs/LKB
Yay, I love this series!!! Oops, just kiddin'. The Matrix is a tool for generating a toy grammar so you can play with it quickly.
http://www.delph-in.net/matrix/customize/matrix.cgi
If you want to use your grammar in production, you should use ACE. See this page for everything about ACE.Basically what you want is to download a copy of ACE from here, and then see this page to know how to use it.
For example, you want to compile my grammar VIRGO, and you have it in the workspace folder under your home folder (~/workspace/virgo) you can try:
cd ~/workspace/virgo
ace -g ace/config.tdl -G virgo.dat
NOTE: change virgo.dat to any name you want. Make sure you have a lowercase g for the first argument and uppercase G for the second argument. They are NOT interchangable.
To parse a sentence, use this:
echo "chim bay." | ace -g virgo.dat -1Tf
Home | Forum | Discussions | Events