Giter Site home page Giter Site logo

baizenlp's Introduction

BaizeNLP

Baize is a mythical hooved chimerical creature known in Chinese, which knows every dialect and neologism of world.

Word segmentation

BaizeNLP provides Chinese word segmentation function. The algorithm is based on a hybrid method of n-gram language model and HMM model.

New word discovering

Web Demo >>

More details for this project >>

Usage

  1. Download source code.
$ mkdir my_project && cd my_project
$ git clone https://github.com/lujiaying/BaizeNLP/tree/master/worddiscovery
  1. Try the hello world example.
# hello.py
# encoding: utf-8

from BaizeNLP.worddiscovery import entropy_based

discover = entropy_based.EntropyBasedWorddiscovery(word_max_len=4)
discover.parse("""
    自然语言处理是计算机科学领域与人工智能领域中的一个重要方向。它研究能实现人与计算机之间用自然语言进行有效通信的各种理论和方法。自然语言处理是一门融语言学、计算机科学、数学于一体的科学。因此,这一领域的研究将涉及自然语言,即人们日常使用的语言,所以它与语言学的研究有着密切的联系,但又有重要的区别。自然语言处理并不是一般地研究自然语言,而在于研制能有效地实现自然语言通信的计算机系统,特别是其中的软件系统。因而它是计算机科学的一部分。
自然语言处理(NLP)是计算机科学,人工智能,语言学关注计算机和人类(自然)语言之间的相互作用的领域。
""")

print('\n'.join(discover.get_new_words(10)))

BaizeNLP

白泽说人话,通万物之情,晓天下万物状貌。

分词

TODO: 添加说明

新词挖掘

原理详情请参考 >>

Web Demo >>

使用说明

  1. 下载源码
$ mkdir my_project && cd my_project
$ git clone https://github.com/lujiaying/BaizeNLP/tree/master/worddiscovery
  1. 尝试编写一个简单的程序
# hello.py
# encoding: utf-8

from BaizeNLP.worddiscovery import entropy_based

discover = entropy_based.EntropyBasedWorddiscovery(word_max_len=4)
discover.parse("""
    自然语言处理是计算机科学领域与人工智能领域中的一个重要方向。它研究能实现人与计算机之间用自然语言进行有效通信的各种理论和方法。自然语言处理是一门融语言学、计算机科学、数学于一体的科学。因此,这一领域的研究将涉及自然语言,即人们日常使用的语言,所以它与语言学的研究有着密切的联系,但又有重要的区别。自然语言处理并不是一般地研究自然语言,而在于研制能有效地实现自然语言通信的计算机系统,特别是其中的软件系统。因而它是计算机科学的一部分。
自然语言处理(NLP)是计算机科学,人工智能,语言学关注计算机和人类(自然)语言之间的相互作用的领域。
""")

print('\n'.join(discover.get_new_words(10)))

baizenlp's People

Contributors

lujiaying avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

baizenlp's Issues

Blueprint

  • 开箱即用的NLP功能(pretrained model)
  • 定制加载语料的功能(train by user)
  • 在公开数据集上的评测结果(sighan wordseg bakeoff)

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.