874
edits
(thumbnailed diagram) |
(Added the beginning.) |
||
Line 1: | Line 1: | ||
Back to [[Labs/Ubiquity]]. | Back to [[Labs/Ubiquity]]. | ||
[[Image:Ubiquity_NLParser_Whiteboard_Diagram.jpg| | [[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. |
edits