返回信息中没有词性 ne为空
liu__tianfang 发布于2018-08 浏览:2083 回复:1
0
收藏

使用的是python baidu-aip 2.2.5.2,8月3日还有词性,ne有值。8月5日至今一直为空

client = AipNlp(APP_ID, API_KEY, SECRET_KEY)

result = client.lexer("钥匙放在厨房碗柜第二层的上面")

 

结果是:

{'log_id': 7594701627448061645, 'text': '钥匙放在厨房碗柜第二层的上面', 'items': [{'loc_details': [], 'byte_offset': 0, 'uri': '', 'pos': 'n', 'ne': '', 'item': '钥匙', 'basic_words': ['钥匙'], 'byte_length': 4, 'formal': ''}, {'loc_details': [], 'byte_offset': 4, 'uri': '', 'pos': 'v', 'ne': '', 'item': '放在', 'basic_words': ['放在'], 'byte_length': 4, 'formal': ''}, {'loc_details': [], 'byte_offset': 8, 'uri': '', 'pos': 'n', 'ne': '', 'item': '厨房', 'basic_words': ['厨房'], 'byte_length': 4, 'formal': ''}, {'loc_details': [], 'byte_offset': 12, 'uri': '', 'pos': 'n', 'ne': '', 'item': '碗柜', 'basic_words': ['碗柜'], 'byte_length': 4, 'formal': ''}, {'loc_details': [], 'byte_offset': 16, 'uri': '', 'pos': 'm', 'ne': '', 'item': '第二层', 'basic_words': ['第', '二', '层'], 'byte_length': 6, 'formal': ''}, {'loc_details': [], 'byte_offset': 22, 'uri': '', 'pos': 'u', 'ne': '', 'item': '的', 'basic_words': ['的'], 'byte_length': 2, 'formal': ''}, {'loc_details': [], 'byte_offset': 24, 'uri': '', 'pos': 'f', 'ne': '', 'item': '上面', 'basic_words': ['上面'], 'byte_length': 4, 'formal': ''}]}

收藏
点赞
0
个赞
共1条回复 最后由奇迹斗牛士回复于2018-08
#2奇迹斗牛士回复于2018-08

您好,问题已收到,正在咨询相关开发 有了结论第一时间回复您

0
TOP
切换版块