Hello!
As chatscript doesn’t have dictionary for portuguese. I am trying to make a table to conjugate verbs as a way to use tense in my bot.
I deleted the content of DICT\ENGLISH. And I created a table (RAWDATA\WORLDDATA\verbos.tbl) to do the conjugation as is in THE TABLE below.
I think the best way to do the verbs conjugation is to make a table. Make a dictionary is so hard.
My doubts are:
1. When I changed the order that I put the function ^addproperty it does not work, why? For example in the stretch of the table:
if(^pessoa1s!=*){
^canon(^pessoa1s ^canonical)
^addproperty(^pessoa1s VERB ^tempoverbal)
}
If I put the ^canon function first, the function ^addproperty does not work. It just work if it is the first function. Chatscript does not show any error when I compile. But, when I use :prepare word, I can not see any bit flag.
**********************************************************************************************
2. If I deleted all content of DICT\ENGLISH, why when I use :prepare “any word” chatscript show bit flags for the word like (~noun, ~noun_singular)?
:prepare kesoe9wfsfa
TokenControl: DO_SUBSTITUTE_SYSTEM DO_NUMBER_MERGE DO_PROPERNAME_MERGE DO_DATE_MERGE DO_INTERJECTION_SPLITTING DO_POSTAG
Original User Input: kesoe9wfsfa
Tokenized into: kesoe9wfsfa
Actual used input: kesoe9wfsfa
Xref: 1:kesoe9wfsfa
1:kesoe9wfsfa
badparse Tagged POS 1 words: kesoe9wfsfa/unknown-word (Noun_singular)
MainSentence: PRESENT
Concepts:
1: kesoe9wfsfa (raw): +~noun +~noun_singular +~normal_noun_bits +~noun_bits +~unknownword +kesoe9wfsfa //
1: unknown-word (canonical): +unknown-word //
Sequences:
After parse TokenFlags: PRESENT USERINPUT FAULTY_PARSE NOT_SENTENCE
*********************************************************************************************
3. How can I rename bit flags? The function ^define show a error when I use. And I’d like use it in my patterns.
The content of a file.top
^define(VERBO_PRESENTE VERB_PRESENT)
^define(VERBO_PASSADO VERB_PAST)
concept: ~verbos_presente( VERBO_PRESENTE )
concept: ~verbos_passado( VERBO_PASSADO )
The error:
caneta: > :build 0
ChatScript Version 6.5 compiled May 7 2016 20:44:01
>>Reading folder RAWDATA/WORLDDATA/
——Reading file conceito_verbos.top
*** Error- line 1 of conceito_verbos.top:
in conceito_verbos.top at 1: ^define(VERBO_PRESENTE VERB_PRESENT)
FILE-1 Unknown top-level declaration ^define in RAWDATA/WORLDDATA/conceito_verbos.topReading concept ~verbos_presente
Reading concept ~verbos_passado
——Reading file verbos.tbl
Reading table tbl:addverbos
<<end folder RAWDATA/WORLDDATA
ERROR SUMMARY:
line 1 of conceito_verbos.top: FILE-1 Unknown top-level declaration ^define in RAWDATA/WORLDDATA/conceito_verbos.top
r
1 errors - press Enter to quit. Then fix and try again.
*************************************************************************************************
THE TABLE
table: ^addverbos(^canonical ^tempoverbal ^pessoa1s ^pessoa2s ^pessoa3s ^pessoa1p ^pessoa2p ^pessoa3p)
if(^canonical!=*){
^addproperty (^canonical VERB VERB_INFINITIVE)
}
if(^pessoa1s!=*){
^addproperty(^pessoa1s VERB ^tempoverbal)
^canon(^pessoa1s ^canonical)
}
if(^pessoa2s!=*){
^addproperty(^pessoa2s VERB ^tempoverbal)
^canon(^pessoa2s ^canonical)
}
if(^pessoa3s!=*){
^addproperty(^pessoa3s VERB ^tempoverbal)
^canon(^pessoa3s ^canonical)
}
if(^pessoa1p!=*){
^addproperty(^pessoa1p VERB ^tempoverbal)
^canon(^pessoa1p ^canonical)
}
if(^pessoa2p!=*){
^addproperty(^pessoa2p VERB ^tempoverbal)
^canon(^pessoa2p ^canonical)
}
if(^pessoa3p!=*){
^addproperty(^pessoa3p VERB ^tempoverbal)
^canon(^pessoa3p ^canonical)
}
DATA:
ser VERB_PRESENT sou es e somos sois sao
ser VERB_PAST fui foste foi fomos fostes foram