-
-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
Matcher is too slow processing text #1819
Comments
5 tasks
Merging this with the master issue #1971! |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I built a matcher & phrase matcher object which has 10 lakh patterns. For some reason Matcher is taking very long time to process a document ( > 5 mins for each doc) and phrase matcher is doing it in a second on the same data.
I don't know if I am missing something here, but any help is much appreciated.
The reason I need to use Matcher instead of phrase matcher because:
Ex: I have a text file with many phrases such as "United State Of America"
I built phrase matcher object using the above. In the test document if there is phrase
"United State Of \n America" phrase matcher will not return a match because of the extra newline character. Whereas in Matcher I can customize the pattern by adding various things like {'ORTH':'\n','OP':'*'}.
Your Environment
The text was updated successfully, but these errors were encountered: