Знаете ли вы, бот Либре также предоставляет бесплатное размещение форумов для вашего собственного сайта или мобильное приложение?
Bot Libre Forum : how would i change fronm is to are

RE: how would i change fronm is to are

по admin опубликовано Jul 16 2018, 16:21

You cannot do that in AIML, but you could in a Self tag.
Something like:

<pattern>i like *</pattern>
<template>what <self>if (star.endsWith("s")) { "are"; } else { "is"; }</self> <star/>.

If your bot has Wiktionary enabled, you could also do more advanced things checking the word's #cardinality.

Note that "I like apple" is not valid grammar. "I like apples" would be correct.
For a singular you would use "I like the apple", in which case you can check for "the" in a pattern.
Trying to parse English or natural language in general is very advanced, there is an example in the Understanding Self script.
But you would need to understand programming for this.

Идентификатор: 22832492
Опубликовано: Jul 16 2018, 16:21
Обновлено: Jul 17 2018, 9:33
Ответы: 0
Вид: 1653, сегодня: 1, неделю: 1, месяц: 13
0 0 0.0/5