• Stars
    star
    174
  • Rank 219,104 (Top 5 %)
  • Language
    Python
  • Created about 6 years ago
  • Updated almost 6 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

语义理解/口语理解,项目包含有词法分析:中文分词、词性标注、命名实体识别;口语理解:领域分类、槽填充、意图识别。

语义理解/口语理解

采用了深度学习等技术

主要功能:

  • 中文分词
  • 词性标注
  • 命名实体识别
  • 领域分类
  • 槽填充
  • 意图识别

自然语言处理使用的是作者开源的Jiagu项目:https://github.com/ownthink/Jiagu

spoken举例:

上海的天气
厦门明天会不会下雨
姚明真正的身高是多少

使用方式

python3 test.py

解析结果

{
    "input": "厦门明天会不会下雨", 
    "semantics": [
        {
            "score": "0.8", 
            "domain": "天气", 
            "intent": "", 
            "slot": [
                [
                    "城市", 
                    "厦门"
                ], 
                [
                    "日期", 
                    "明天"
                ]
            ]
        }
    ], 
    "词法分析": {
        "词性标注": [
            "地名", 
            "时间词", 
            "动词", 
            "动词", 
            "动词"
        ], 
        "实体识别": [
            "B-地名", 
            "O", 
            "O", 
            "O", 
            "O"
        ], 
        "中文分词": [
            "厦门", 
            "明天", 
            "", 
            "不会", 
            "下雨"
        ]
    }
}