new keyword entities not showing metadata object on get/message call
report a bug
GET /message is not returning the metadata of two new keyword entities "keyword_letra" and "keyword_numero". However, when I do GET /entities I can see that metadata exists
reproduce - Get /message of text "a" or "1"
It should include metadata
app-id 58cbd218-ee75-4504-95f6-b1692cdb55d7
Hi @eoquendo, you provided your access token instead of the app id. Please provide the app id instead, and you may want to reset your access token (in Settings).
ups. sorry. here you go:
58cbd218-ee75-4504-95f6-b1692cdb55d7
I can't reproduce:
"a"
{"msg_id":"0fyOdOe8EMAAuUghA","_text":"a","entities":{"keyword_letra":[{"metadata":"{'id': 'brain_keyword_a'}","confidence":0.83718280263876,"value":"a","type":"value"}]}}
"1"
{"msg_id":"05edMDA2HVZnvhWkI","_text":"1","entities":{"keyword_numero":[{"metadata":"{'id': 'brain_keyword_1'}","confidence":1,"value":"1","type":"value"}]}}
Hi @patapizza
I just found this problem again in a different app. I'll try to explain it better this time.
What is the current behavior? I am using the Wit API to create a new entity called "charla". This entity has like 50 values each with metadata and multiple expressions. Even though it shows the metadata in the dashboard for all the values, it does not include the metadata object when it matches the entity from the API call for any of them. See images for example of "cool" one of the values of the "charla" entity.
The behavior was the same for all the other values of the "charla" entity. I was able to save the metadata directly in dashboard, however, this is unstable for us since we do a lot of work from the API.
If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem.
- Call --> https://api.wit.ai/message?v=20170515&q=cool&n=2 (it does not include metadata object)
- See in dashboard that metadata is included
What is the expected behavior? Response should include metadata when 'https://api.wit.ai/message?v=20170515&q=cool&n=2' is called.
What is the App ID where you are experiencing this issue (if applicable)? 592980b1-3f1c-4739-a4d0-06e862757098
Thanks for the thorough explanation @eoquendo. I could reproduce this time.
Hi! @patapizza any news? Thanks!
@eoquendo apologies for the late answer, prioritized as urgent fix
Sorry for the late response @eoquendo. I can't repro:
$ curl \
-H 'Authorization: Bearer xx' -XGET \
'https://api.wit.ai/message?junk=true&v=20170515&q=cool&n=2'
{"_text":"cool","entities":{"charla":[{"metadata":"{'id': 'brain_cool'}","confidence":0.95086043223335,"value":"cool"},{"metadata":"{'id': 'brain_mucha_risa'}","confidence":0.002899674713508,"value":"mucha_risa"}],"doctor":[{"metadata":"{'id': 'brain_que_servicios_medicos_proveen'}","confidence":0.00083583827674454,"value":"que_servicios_medicos_proveen"},{"metadata":"{'id': 'brain_deseo_trabajar_en_su_compania'}","confidence":0.00074395472670239,"value":"deseo_trabajar_en_su_compania"}],"dentista":[{"metadata":"{'id': 'brain_que_planes_aceptan'}","confidence":0.0011727339284338,"value":"que_planes_aceptan"},{"metadata":"{'id':'brain_ya_saque_cita'}","confidence":0.0011620877218951,"value":"ya_saque_cita"}],"ropa_de_mujer":[{"metadata":"{'id': 'brain_piezas_vienen_juntas_o_separadas?'}","confidence":0.0005668771540185,"value":"piezas_vienen_juntas_o_separadas?"},{"metadata":"{'id': 'brain_deseo_ver_productos'}","confidence":0.000533405439314,"value":"deseo_ver_productos"}]},"msg_id":"1pxl2AaPKvOY2S1hw"}