Quantcast
Channel: 《Itenyh版-用HMM做中文分词一:序》的评论
Browsing all 10 articles
Browse latest View live

作者:Garfield

您好,刚接触HMM时间不长,在这向您请教一个HMM的问题,我现在用连续HMM,输出概率使用高斯加权输出,sum(w(i)*N(i)),其中求N的时候总是溢出(因为连乘,导致N太小,计算机无法表示而置为0),这个问题在实际中应该经常遇到,该怎么解决呢?非常感谢

View Article



作者:itenyh

在不影响计算结果的前提下,考虑一下使用f(x)=ln(x),这是一个增函数,那么argmax p(x1)*p(x2)*p(x3)….. = argmin -lnP(x1) – lnP(x2)-lnP(x3)…..,这样可以避免连乘导致的溢出。我也用到了这个技巧,不知道能不能解决你的问题。

View Article

作者:Garfield

这样做确实可以防止溢出,但我只要这样用,最后估计得高斯参数中:某一个状态下,各个高斯分量的均值基本上都相等了,加权就变得没意义了,不知道怎么解决

View Article

作者:itenyh

这个我就不清楚了,希望其他人能帮你解决吧

View Article

作者:zhangsan

alert(“XSS”)

View Article


作者:Garfield

您好,刚接触HMM时间不长,在这向您请教一个HMM的问题,我现在用连续HMM,输出概率使用高斯加权输出,sum(w(i)*N(i)),其中求N的时候总是溢出(因为连乘,导致N太小,计算机无法表示而置为0),这个问题在实际中应该经常遇到,该怎么解决呢?非常感谢

View Article

作者:itenyh

回复给<a href="https://www.52nlp.cn/itenyh%e7%89%88-%e7%94%a8hmm%e5%81%9a%e4%b8%ad%e6%96%87%e5%88%86%e8%af%8d%e4%b8%80%ef%bc%9a%e5%ba%8f/comment-page-1#comment-5024">Garfield</a>。...

View Article

作者:Garfield

回复给<a href="https://www.52nlp.cn/itenyh%e7%89%88-%e7%94%a8hmm%e5%81%9a%e4%b8%ad%e6%96%87%e5%88%86%e8%af%8d%e4%b8%80%ef%bc%9a%e5%ba%8f/comment-page-1#comment-5038">itenyh</a>。...

View Article


作者:itenyh

回复给<a href="https://www.52nlp.cn/itenyh%e7%89%88-%e7%94%a8hmm%e5%81%9a%e4%b8%ad%e6%96%87%e5%88%86%e8%af%8d%e4%b8%80%ef%bc%9a%e5%ba%8f/comment-page-1#comment-5041">Garfield</a>。...

View Article


作者:zhangsan

alert("XSS")

View Article
Browsing all 10 articles
Browse latest View live


Latest Images

Pangarap Quotes

Pangarap Quotes

Vimeo 10.7.0 by Vimeo.com, Inc.

Vimeo 10.7.0 by Vimeo.com, Inc.

HANGAD

HANGAD

MAKAKAALAM

MAKAKAALAM

Doodle Jump 3.11.30 by Lima Sky LLC

Doodle Jump 3.11.30 by Lima Sky LLC