aho:Alo Corasick在Clojure中的实现

时间:2021-05-21 00:20:10
【文件属性】:
文件名称:aho:Alo Corasick在Clojure中的实现
文件大小:4KB
文件格式:ZIP
更新时间:2021-05-21 00:20:10
Clojure ho 算法的简单实现,可以处理任何序列。 用法 ( :require [aho.core :refer [build-automaton search]]) ( def automaton ( build-automaton [[ :word1 " foo " ] [ :word2 " bar " ]])) ( search automaton " ofoo and bar " ) ; ; ({:index 11, :pattern :word2} {:index 3, :pattern :word1}) ; ; the index is the last position of the match in the string. 执照 版权所有:copyright:2020 该程序和随附的材料根据Eclipse Public License 2.0的条款提供,该条款可从。 当满足Eclipse Publ
【文件预览】:
aho-main
----src()
--------aho()
----test()
--------aho()
----README.md(1KB)
----project.clj(438B)

网友评论