After

AQPython.Query.After(left, right, dist=9223372036854775807, limit=0, negate=False)

Provide the ability to find annotations that are after another annotation.

The input is 2 Dataframes of AQAnnotations. We will call them A and B. The purpose is to find those annotations in A that are after B. What that means is the start offset for an annotation from A must be after (or equal to) the end offset from an annotation in B. We ultimately return the A annotations that meet this criteria. A distance operator can also be optionally specified. This would require an A annotation (startOffset) to occur n characters (or less) after the B annotation (endOffset). There is also the option of negating the query (think Not After) so that we return only A where it is not after B.

Parameters
  • left – Dataframe of AQAnnotations, the ones we will return if they are after AQAnnotations from ‘right’.

  • right – Dataframe of AQAnnotations, the ones we are looking to see if are before AQAnnotations from ‘left’.

  • dist – Number of characters where startOffset from ‘left’ must occur after endOffset from ‘right’. Default is sys.maxsize.

  • limit – Number of AQAnnotations to return.

  • negate – Whether to negate the entire query (think NOT after). Default is false.

Returns

Dataframe of AQAnnotations