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

Can we improve spaCy patterns; allow to match on single or multi-token? #64

Open
sam-writer opened this issue Jun 26, 2020 · 0 comments
Assignees
Labels
question Further information is requested

Comments

@sam-writer
Copy link
Contributor

So often I want to match word1 word2 or phrase_1 phrase_2 phrase_2 and suggest replacing them with replacement. Because the spaCy matcher is token-based, this requires multiple match rules... that seems silly. e.g. "replace dumb, mute, or non-verbal with unable to speak.

Can we have a shorthand for this instead of having to have as many matches as different token counts?

@sam-writer sam-writer added the question Further information is requested label Jun 26, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants