Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Subsequence automaton #64

Merged
merged 1 commit into from Aug 25, 2018
Merged

Conversation

matklad
Copy link
Contributor

@matklad matklad commented Jun 27, 2018

Adds a simple Subsequece automaton as an example.

On the one hand, this seems like a random addition of a specific case.

On the other hand, subsequence search is actually good in practice for fuzzy-finders and such. This might also serve as a good example of how to implement your own Automaton: it is more concrete that abstract algebraic combinators, and simpler than Levenstein.

@matklad
Copy link
Contributor Author

matklad commented Aug 13, 2018

Friendly ping: I am about to copy-paste this into yet another project :)

Copy link
Owner

@BurntSushi BurntSushi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This LGTM! Sorry for the delay! Context switching is hard. :-)

@BurntSushi BurntSushi merged commit 5d0f439 into BurntSushi:master Aug 25, 2018
@BurntSushi
Copy link
Owner

This is in fst 0.3.1 on crates.io: https://docs.rs/fst/0.3.1/fst/automaton/struct.Subsequence.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants