【发布时间】:2019-05-24 07:02:41
【问题描述】:
entities = ({confidence = "<null>"; end = 113; entity = DATE; extractor = "ner_spacy";start = 103;value = "five years";
},
{confidence = "<null>"; end = 177;entity = ORG; extractor = "ner_spacy";start = 163; value = "xyz Company";
}
);
这是后端数据,我需要在字符串中显示删除并在字符串文本中添加新值:
示例:“根据您在 {{ORG}} 的 {{years_of_experience}} 经验,有哪些流程改进或标准设置?”
答案:0 的数组 ---> 五年和 1 的数组 ---> xyz 公司 我需要显示数组 0 和 1 的文本,而不是打开和关闭的大括号。
在您在 xyz 公司的五年经验中,有哪些流程改进或标准设置?
【问题讨论】:
-
根据哪个键识别需要在字符串中输入的数据类型?
-
另外,为您的 API 响应添加一个适当的 JSON 示例。
-
你试过什么,你能分享你当前的代码吗?您能否还添加一个正确的示例 json 消息,您的示例中没有“years_of_experience”。