How to combine Context with Matcher? #10435
-
Greetings all, I have complied 1.5 million of words corpus consisting of 26 subcorpora with 9700 individual documents. There is also a rich metadata attached. The corpus is now a Pandas DataFrame. What I would like to do is to apply Matcher function over tuples in nlp.pipe so that I can retrieve both match_id, token_sent and document name from context(i.e. doc_id included in the context). However, the following code provides null results;
Edit: Strangely enough code has worked now. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
I switched from PyCharm to Spyder and code has worked now. Still not sure about the issue. |
Beta Was this translation helpful? Give feedback.
I switched from PyCharm to Spyder and code has worked now. Still not sure about the issue.