GithubHelp home page GithubHelp logo

funnysaltyfish / hmm_ner_organization Goto Github PK

View Code? Open in Web Editor NEW

This project forked from lipengfei-558/hmm_ner_organization

0.0 1.0 0.0 118 KB

使用HMM模型实现的机构名实体识别

Python 100.00%

hmm_ner_organization's Introduction

基于HMM模型的机构名实体识别

1.环境依赖

  • python 2.7
  • jieba (可选)

2.算法说明

参考《基于角色标注的中文机构名识别》论文,结合HanLP提供的针对机构名的HMM语料,实现了基于HMM模型的机构名实体识别算法。

详细说明文档,可前往我的博客围观:用隐马尔可夫模型(HMM)做命名实体识别——NER系列(二)

3.使用说明

首先,运行以下脚本:

python generate_data.py

会在./data下生成transition_probability.txtemit_probability.txt以及initial_vector.txt

然后,运行:

python OrgRecognize.py

就可以了,不出意外,“中海油集团在哪里”这句话,会识别出“中海油集团”这个机构实体。

4.参考资料

  • 张华平, 刘群. 基于角色标注的**人名自动识别研究[J]. 计算机学报, 2004, 27(1):85-91.
  • 俞鸿魁, 张华平, 刘群. 基于角色标注的中文机构名识别[C]// Advances in Computation of Oriental Languages--Proceedings of the, International Conference on Computer Processing of Oriental Languages. 2003.
  • 俞鸿魁, 张华平, 刘群,等. 基于层叠隐马尔可夫模型的中文命名实体识别[J]. 通信学报, 2006, 27(2):87-94.
  • 码农场文章:层叠HMM-Viterbi角色标注模型下的机构名识别

hmm_ner_organization's People

Contributors

lipengfei-558 avatar

Watchers

 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.