AhoCorasick:Aho-Corasick 字符串匹配算法的 Haskell 实现

时间:2021-06-02 08:03:54
【文件属性】:
文件名称:AhoCorasick:Aho-Corasick 字符串匹配算法的 Haskell 实现
文件大小:7KB
文件格式:ZIP
更新时间:2021-06-02 08:03:54
Haskell 阿霍科拉西克 字符串匹配算法。 安装 cabal update cabal install AhoCorasick 例子 最简单的例子 example1 = mapM_ print $ findAll simpleSM " ushers " where simpleSM = makeSimpleStateMachine [ " he " , " she " , " his " , " hers " ] Position {pIndex = 1, pLength = 3, pVal = "she"} Position {pIndex = 2, pLength = 2, pVal = "he"} Position {pIndex = 2, pLength = 4, pVal = "hers"} 有数据 example2 = mapM_ print $ findAll sm " us
【文件预览】:
AhoCorasick-master
----Setup.hs(75B)
----AhoCorasick.cabal(1014B)
----LICENSE(1KB)
----Text()
--------AhoCorasick()
--------AhoCorasick.hs(10KB)
----README.md(1KB)

网友评论