Code Monkey home page Code Monkey logo

knowledge-graph-nlp-in-action's Introduction

knowledge-graph-nlp-in-action

实战知识图谱和nlp相关任务,包括模型训练到部署全流程。

目录

NLP

模型: Bert + BiLSTM + CRF

模型输入: 一段文本。

模型输出: 文本包含的机构、人名、时间等实体。

input text : ****总书记、国家主席***发表1998年新年讲话
[
    {
        "end": 4,
        "words": "****",
        "type": "ORG",
        "begin": 1
    },
    {
        "end": 15,
        "words": "***",
        "type": "PER",
        "begin": 13
    },
    {
        "end": 22,
        "words": "1998年",
        "type": "TIME",
        "begin": 18
    }
]

模型: Bert

模型输入: 实体A,实体B,包含实体A和实体B的文本。

模型输出: 文本包含的机构、人名、时间等实体。

input: 喜剧之王      周星驰  如何演好自己的角色,请读《演员自我修养》《喜剧之王》周星驰崛起于穷困潦倒之中的独门秘笈

model version 1573956875

text: 喜剧之王  周星驰  如何演好自己的角色,请读《演员自我修养》《喜剧之王》周星驰崛起于穷困潦倒之中的独门秘笈
result:
{
    "主演": 0.9959173798561096,
    "导演": 0.0018050138605758548,
    "编剧": 0.000452475156635046,
    "歌手": 0.0002099768607877195,
    "制片人": 0.0001938332716235891,
    ...
}

***** Eval results ***** eval_accuracy = 0.97999 eval_loss = 0.06774125 global_step = 19000 loss = 0.06772543

模型: seq2seq greedy (QA)

模型输入: 输入你的梦境。

模型输出: 返回梦境解析的结果(周公解梦数据训练)。

********************
input your dream: 梦见中奖了
dream: 梦见中奖了
dream decoding: 预示你事业上将面临挑战和机遇,会有大发展。 

********************
input your dream: 梦见大富豪
dream: 梦见大富豪
dream decoding: 预示着自己生活会很愉快。

相关文档

knowledge-graph-nlp-in-action's People

Contributors

saiwaiyanyu avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.