Labs/Ubiquity/Parser Documentation: Difference between revisions

From MozillaWiki
< Labs‎ | Ubiquity
Jump to navigation Jump to search
(thumbnailed diagram)
(Added the beginning.)
Line 1: Line 1:
Back to [[Labs/Ubiquity]].
Back to [[Labs/Ubiquity]].


[[Image:Ubiquity_NLParser_Whiteboard_Diagram.jpg|400px|thumb|left|The parser architecture, as depicted by Jono DiCarlo.]]
[[Image:Ubiquity_NLParser_Whiteboard_Diagram.jpg|200px|thumb|right|The parser architecture, as depicted by Jono DiCarlo.]]
 
== The Epic Journey ==
 
We will now follow the journey of a string through Ubiquity's parser.
 
Suppose that the user enters the following into the parser:
 
  trans hello world to ja
 
=== Finding the Verb ===
 
First, the parser finds the verb in the sentence.  This is currently done by just taking the part of the string that occurs before the first space character: in other words, <tt>trans</tt> is our verb, and <tt>hello world to ja</tt> is the rest of our sentence.

Revision as of 21:33, 27 January 2009

Back to Labs/Ubiquity.

The parser architecture, as depicted by Jono DiCarlo.

The Epic Journey

We will now follow the journey of a string through Ubiquity's parser.

Suppose that the user enters the following into the parser:

 trans hello world to ja

Finding the Verb

First, the parser finds the verb in the sentence. This is currently done by just taking the part of the string that occurs before the first space character: in other words, trans is our verb, and hello world to ja is the rest of our sentence.