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

Matcher is too slow processing text #1819

Closed
sandeep118 opened this issue Jan 9, 2018 · 2 comments
Closed

Matcher is too slow processing text #1819

sandeep118 opened this issue Jan 9, 2018 · 2 comments

Comments

@sandeep118
Copy link

sandeep118 commented Jan 9, 2018

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

  • spaCy version: 2.0.5
  • Platform: Darwin-17.2.0-x86_64-i386-64bit
  • Python version: 3.6.0
  • Models: en_core_web_lg
@ines
Copy link
Member

ines commented Feb 12, 2018

Merging this with the master issue #1971!

@ines ines closed this as completed Feb 12, 2018
@lock
Copy link

lock bot commented May 7, 2018

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.

@lock lock bot locked as resolved and limited conversation to collaborators May 7, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants