Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the difference between a trait, freetext and keyword and which should I use in wit.ai

Tags:

nlp

wit.ai

I was wondering if somebody could elaborate on the difference between trait, freetext and keywords as search strategies in wit.ai entities? I don't see that much about it on the docs and haven't been able to find anything about it elsewhere. Could somebody please give a few use cases of when each would be the best choice?

like image 944
user3282276 Avatar asked Dec 19 '22 14:12

user3282276


1 Answers

Trait: When the entity value is not inferred from a keyword or specific phrase in the sentence. There is no obvious association between certain words in the sentence and the value of the entity, but rather you need the sentence as a whole to determine the value.
Ex: Intent, Sentiment, Politeness

Free Text: When you need to extract a sub string of the message, and this sub string does not belong to a predefined list of possible values.
Ex: Message Body, Contact Name etc.

Keywords: When the entity value belongs to a predefined list, and you just need sub string matching to look it up in the sentence.
Ex: Country, Car Make, Colours, cuisines etc.

like image 81
Ravi Teja Avatar answered May 17 '23 07:05

Ravi Teja