Package sphinxbase :: Module sphinxbase :: Class Jsgf
[hide private]
[frames] | no frames]

Class Jsgf

source code

object --+
         |
        Jsgf

Proxy of C Jsgf struct

Instance Methods [hide private]
 
__setattr__(self, name, value)
x.__setattr__('name', value) <==> x.name = value
source code
 
__getattr__(self, name) source code
 
__repr__(self)
repr(x)
source code
 
__iter__(self)
__iter__(Jsgf self) -> JsgfIterator
source code
 
__init__(self, path)
__init__(Jsgf self, char const * path) -> Jsgf
source code
 
__swig_destroy__(...)
delete_Jsgf(Jsgf self)
 
__del__(self) source code
 
get_name(self)
get_name(Jsgf self) -> char const *
source code
 
get_rule(self, name)
get_rule(Jsgf self, char const * name) -> JsgfRule
source code
 
build_fsg(self, rule, logmath, lw)
build_fsg(Jsgf self, JsgfRule rule, LogMath logmath, float lw) -> FsgModel
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __sizeof__, __str__, __subclasshook__

Class Variables [hide private]
  __swig_setmethods__ = {}
  __swig_getmethods__ = {}
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__setattr__(self, name, value)

source code 

x.__setattr__('name', value) <==> x.name = value

Overrides: object.__setattr__
(inherited documentation)

__repr__(self)
(Representation operator)

source code 

repr(x)

Overrides: object.__repr__
(inherited documentation)

__init__(self, path)
(Constructor)

source code 

__init__(Jsgf self, char const * path) -> Jsgf

Overrides: object.__init__

get_rule(self, name)

source code 

get_rule(Jsgf self, char const * name) -> JsgfRule

Get a rule by name from a grammar.

Name should not contain brackets.

build_fsg(self, rule, logmath, lw)

source code 

build_fsg(Jsgf self, JsgfRule rule, LogMath logmath, float lw) -> FsgModel

Build a Sphinx FSG object from a JSGF rule.