Revision: 2764
          http://smartbody.svn.sourceforge.net/smartbody/?rev=2764&view=rev
Author:   arishapiro
Date:     2012-01-10 19:39:33 +0000 (Tue, 10 Jan 2012)
Log Message:
-----------
Added SBParser classes to utilize Charniak parser.
Example:

parser = scene.getParser()
parser.initialize(param1, param2) # one time
tree = parser.parse("<s> hello how are you </s>")

tree is type SBParseNode, can be queried and traversed:

tree.isTerminal()
tree.getNumChildren()
child = tree.getChild(0)
child.getWord()
child.getTerm()

Modified Paths:
--------------
    trunk/core/smartbody/smartbody-lib/src/sbm/SBPython.cpp
    trunk/core/smartbody/smartbody-lib/src/sbm/SBScene.cpp
    trunk/core/smartbody/smartbody-lib/src/sbm/SBScene.h
    trunk/core/smartbody/smartbody-lib/visualc9/smartbody-lib.vcproj

Added Paths:
-----------
    trunk/core/smartbody/smartbody-lib/src/sbm/SBParseNode.cpp
    trunk/core/smartbody/smartbody-lib/src/sbm/SBParseNode.h
    trunk/core/smartbody/smartbody-lib/src/sbm/SBParser.cpp
    trunk/core/smartbody/smartbody-lib/src/sbm/SBParser.h

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
Write once. Port to many.
Get the SDK and tools to simplify cross-platform app development. Create 
new or port existing apps to sell to consumers worldwide. Explore the 
Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join
http://p.sf.net/sfu/intel-appdev
_______________________________________________
Smartbody-svn mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/smartbody-svn

Reply via email to