Code Monkey home page Code Monkey logo

Comments (2)

fxsjy avatar fxsjy commented on May 24, 2024

@xuqiang , 目前没有。你可以先看看代码,100行左右。 就是修改了viterbi算法中的状态到字符的发射概率的计算方法,把它改为用NB去估计,估计的时候考虑了了当前字符周围的字符。

训练程序:https://github.com/fxsjy/miniseg/blob/master/train/train_bayes_model.py
分词程序:https://github.com/fxsjy/miniseg/blob/master/miniseg/__init__.py

from miniseg.

xuqiang avatar xuqiang commented on May 24, 2024

多谢,我先看看代码

谢谢
许强

在 2013年6月17日下午1:16,Sun Junyi [email protected]写道:

@xuqiang https://github.com/xuqiang , 目前没有。你可以先看看代码,100行左右。
就是修改了viterbi算法中的状态到字符的发射概率的计算方法,把它改为用NB去估计,估计的时候考虑了了当前字符周围的字符。

训练程序:
https://github.com/fxsjy/miniseg/blob/master/train/train_bayes_model.py
分词程序:https://github.com/fxsjy/miniseg/blob/master/miniseg/__init__.py


Reply to this email directly or view it on GitHubhttps://github.com//issues/1#issuecomment-19526636
.

许强

from miniseg.

Related Issues (2)

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.