Skip to content

cailurus/Montage

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Montage: A multi-pattern matching toolkit

Montage 是一个多模匹配的工具库,包含有经典的 WuManber 多模匹配AC 自动机 的高效 C 实现,并使用 Python 进行 API 的简易封装。

Performance

Getting started

from tmontage import Montage

# let name this Montage
sample = Montage("monster_sample")

# init your monster
sample.init_pattern(['蓝天', '白云'])

# search
sample.search_text('蓝天下有朵朵白云')

How to get

pip install tmontage

About

pattern matching toolbox

Resources

License

Stars

3 stars

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors