A limitation on AttributeRuler (Mappings & Exceptions)? #9373
-
Hi,
If I change it to:
The code still works. What I did was instead of capturing "The Who", capture any sequence of two tokens that have DT and WP as tags. Now, when I change it to:
Now capturing any sequence of tokens whose POS are DET and PRON... nothing happens after
The POS classifications are correct and the sequence is captured. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
I'm not entirely sure I understand what you're saying because you say "nothing happens" but you also say "the sequence is captured", but I think the issue is you can't seem to match a
The reason this doesn't work is because POS are set in the AttributeRuler based on tags - before it runs they are empty. The Ruler isn't recursive, so after it makes a change it doesn't run other rules. So you're trying to match empty fields, which won't work. If you really want to match on POS values you can use a second AttributeRuler after the first, but I suspect it's usually easier to match on the TAG values or other attributes. |
Beta Was this translation helpful? Give feedback.
I'm not entirely sure I understand what you're saying because you say "nothing happens" but you also say "the sequence is captured", but I think the issue is you can't seem to match a
DET PRON
sequence, right? Here's an example: