Skip to content
Discussion options

You must be logged in to vote

Tried running the code you've provided. The first minor issue I encountered was that it is missing ' in the line {"TEXT": 'Start}. Just nitpicking a bit, but for visibility for other users I'm just mentioning it here that its always helpful to post code that run beforehand to make sure its easier for us to provide help on the parts that you would be actually interested in.

Nitpicking aside, when running the code it actually did not print anything, because the pattern did not match. If you print doc.spans after the line doc = nlp('This is a sentence. This is a test sentence written on 27th October 1984 (the "Start Date"). This is another sentence.') you will see the output:

{`ruler`: []}

B…

Replies: 4 comments 2 replies

Comment options

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

Comment options

You must be logged in to vote
0 replies
Comment options

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

Comment options

You must be logged in to vote
0 replies
Answer selected by adrianeboyd
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 feat / spancat Feature: Span Categorizer
2 participants