Skip to content

Using Matcher for each sentence #9304

Sep 27, 2021 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

There is not an option you can give the Matcher that will make it only match within sentences. I think the way you are doing this is the most straightforward way and shouldn't be too slow. Have you tried it to see how much slower it gets?

There is one other thing you could do. Matcher patterns can match on the IS_SENT_START attribute, so you could specify that for every token after the first that needs to be False. However I think specifying that would be more complicated and hard to understand.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@farrandi
Comment options

Answer selected by farrandi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feat / matcher Feature: Token, phrase and dependency matcher
2 participants