简体   繁体   中英

IBM Watson Assistant returning FALSE in response with # and a number

I have a list of plant numbers: (ie #0001). When a user asks about a plant, IBM Watson Assistant is turning "#0001" of "Plant #0001 is at Location A." with false: "Plant false is at Location A."

错误反应的图片 1

However, if I change the response with a space in between the # sign and number, to "Plant # 0001 is in Location A." it is fine.

非错误响应的图像 2

Even if I turn off the system entity "sys-number" it does the same thing.

Has anyone found a solution?

The reason for return false is that the character # is used in short-hand syntax to indicate entities. You probably have not defined an entity #0001 . Thus, the value is false .

If you escape the your plant number, eg, \#0001 , the value is printed correctly. Bottom line, if you want to print anything beginning with special characters like @ , $ or # , use the \ in front of them to escape them.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM