Знаете ли вы, бот Либре также обеспечивает бесплатные размещенные чат на свой сайт или мобильное приложение?
Bugs and Features : Input word quoting versus variable and Parts of speech branching

RE: Input word quoting versus variable and Parts of speech branching

по admin опубликовано Jan 15 2015, 7:53

The NounVerbAdjective script is probably your best place to start for this. It can already parse phrases like "Does Jane run fast".

If you want to perform a multi-pass parser, you can have two or more cases in your root state, i.e.

case :input goto State:posState for each #word of :sentence;
case :input goto State:understandState for each #word of :sentence;

The posState could process, but only tag the input (i.e. do (associate :input to :subject by #subject), or maybe on the :sentence, :input is specific to this context, :sentence is persistent). Then your understandState could use this information in its parsing. To get the posState to return just use "return" or just have no quotient, then it will evaluate the next state.


Идентификатор: 706833
Опубликовано: Jan 15 2015, 7:53
Ответы: 0
Вид: 1565, сегодня: 1, неделю: 1, месяц: 4
0 0 0.0/5