generate_gram.rb

Path: generate_gram.rb
Last Update: Sat May 23 20:29:01 +0200 2009

This file script is to generate grammar for CMU Sphinx program

License: GNU General Public License V2

Author: Lukáš Kerpl

Methods

add  

Public Instance methods

add item to grammar

[Source]

# File generate_gram.rb, line 13
def add(x,i)
        a = x.scan(/[a-zA-Z ]+/)
        if a != ""
                buf = " #{a} |"
        end
        buf += '
        ' if i == 0
        return buf
end

[Validate]