Skip to content

What is the correct use of GATE NLP Python's 'RemoveAnn' action? #190

Discussion options

You must be logged in to vote

One of the reasons why this did not work was because the annotation in the input annotation list used by Pampac was a shallow copy of the original annotation and since those instances were different, the remove did not work. A shallow copy was used because the annotation specification annspec=[("", "Token")] could contain annotations with identical ids from different sets.

This has now been changed/fixed on the development trunk by making two changes:

  • the annspec must only use a single set
  • the annset parameter of actions has been replaced by annset_name so that the set actually used is always derived from the document being processed.

Your example should now work with the latest develop…

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

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

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