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?
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With