I’m using a external POS TAGGER.
I’m unable using this functionality ( word ? ~concept) inside a IF statement. It just works in a pattern.
For example:
The word “dançar” (it means dance) is a verb in portuguese. As we can see using the command :prepare
caneta: > :prepare dançar
Command: :prepare dançar
TokenControl: DO_SUBSTITUTES DO_NUMBER_MERGE DO_DATE_MERGE NO_HYPHEN_END
Original User Input: dançar
Tokenized into: dançar
Actual used input: dançar
Concepts:
1: dançar (raw): +~verbo //
1: danç (canonical): +danç // +~utf8
Sequences:
+dançar +~atividades_prazerosas +~atividadesAfter parse TokenFlags: USERINPUT
JUNIOR:
caneta: >
But within an IF statement the Chatscript can not detect.
....,....,....NOPROBLEM (^next) => dançar
....,....,.... _1 = ^next(dançar)
....,....,....if _1 (dançar) != e AND
....,....,....if _1 (dançar) != , AND
....,....,....if _1 (dançar) != . AND
....,....,....if _1 (dançar) != ! SetContains dançar ~verbo : not within
....,....,......if _1 (dançar) ? ~verbo FAIL-if <<<<————HERE THE CHATSCRIPT FAIL IN DETECT THE WORD DANÇAR AS A VERB.
Someone could help me?
Thanks,
Oberdan Alves