Skip to content

Pampac #129

Answered by johann-petrak
joancf asked this question in Help Q&A
Sep 10, 2021 · 2 comments · 3 replies
Discussion options

You must be logged in to vote

Could you please describe more exactly the pattern you intend to match?
I notice that the rule you try will look for, in order, a Sentence annotation, then Token annotation with the is_digit feature then a Token annotation withe lemma="." feature. But I think you want to match a Token that starts together with a sentence and has the is_digit feature true followed by another token etc.

In order to match an annotation at the beginning of a sentence you need a construct like

Ann("Token", features=dict(is_digit=True)).at("Sentence")

Note that the difference between Ann and AnnAt relates to something different: the annotations in the input set form a specific sequence, and even if e.g. Ann1 an…

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
3 replies
@joancf
Comment options

@johann-petrak
Comment options

@joancf
Comment options

Answer selected by joancf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants