biggram

采用Bigram 方法[4]进行字符串相似性度量,设有字符串
属性r1 和r2,令Gr1 和Gr2 分别表示字符串的Bigram 集合,
则2 个字符串的相似性分数计算公式为

 

http://en.wikipedia.org/wiki/Bigram

From Wikipedia, the free encyclopedia

Jump to: navigation , search

Bigrams or digrams are groups of two written letters, two syllables, or two words, and are very commonly used as the basis for simple statistical analysis of text. They are used in one of the most successful language models for speech recognition .[ 1] They are a special case of N-gram .

Gappy bigrams or skipping bigrams are word pairs which allow gaps (perhaps avoiding connecting words, or allowing some simulation of dependencies, as in a dependency grammar ).

Head word bigrams are gappy bigrams with an explicit dependency relationship.

The term is also used in cryptography , where bigram frequency attacks have sometimes been used to attempt to solve cryptograms . See frequency analysis .

Bigrams help provide the conditional probability of a word given the preceding word, when the relation of the conditional probability is applied:

 P(W_n|W_{n-1}) = { P(W_{n-1},W_n) /over P(W_{n-1}) }

That is, the probability P () of a word W n given the preceding word W n − 1 is equal to the probability of their bigram, or the co-occurrence of the two words P (W n − 1 ,W n ) , divided by the probability of the preceding word.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值