利用viterbi算法計算出現機率最大字串

  不少人寫的viterbi算法過於依賴HMM,進行分詞、命名實體識別什麼的,由於反而對於這種單純計算字符串機率最大組合的程序較少:python MIN_FLOAT = -3.14E100 """每一步包含的詞彙列表""" step1 = ["two"] step2 = ["of", "off", "on"] step3 = ["the", "thew"] step4 = ["people"]
相關文章
相關標籤/搜索