I have following sentence and I wanted to extract '12am' out of it.
He is working at 12am
I am using the Spacy Matcher (language model en_core_web_lg) and it breaks the text into the following tokens:
[He] [is] [working] [at] [12am]
And the patterns I tried are:
[{ "LIKE_NUM": true }, {"IS_SPACE": false}, { "LOWER": "am" }],
[{ "LIKE_NUM": true , "LOWER": "am" }],
[{ "SHAPE": 'dd' , "ORTH": "am" }]
Nothing works so far. Basically since the token is [12am].
I need help to create pattern for matching:
Any advice appreciated. Thanks