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

Does the WordSeq extractor support ngrams? #4

Open
zachmayer opened this issue Feb 2, 2018 · 1 comment
Open

Does the WordSeq extractor support ngrams? #4

zachmayer opened this issue Feb 2, 2018 · 1 comment

Comments

@zachmayer
Copy link

E.g. if I want sequences of integers, with ngrams appended to the end?

@anttttti
Copy link
Owner

anttttti commented Feb 3, 2018

Not currently. This can be added as a feature easily.
You can add something like this as the last line in your text normalization function :
text+= " "+bigrams(text)
This will do almost the same, but since its applied as text normalization some things won't be available, such as spelling correction and pruning tokens by frequency. You can get the exact behavior by a more complicated setup, but this should be added as a feature to make it easy to use.

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

No branches or pull requests

2 participants