XMLConcordancer

AQPython.Concordancers.XMLConcordancer(results, textMnt, om, nrows=10, offset=0, highlightAnnotations=None, displayAttrs=True)

Output HTML for the text identified by the AQannotation and highlight in ‘red’ the text that was ignored (excluded).

Also add the XML tags (in ‘orange’) that would have occurred in this string. Note, there are no guarantees that the XML will be well-formed.

Parameters
  • results – Dataframe of AQAnnotations that you would like to display.

  • textPath – Path for the str files. The annotations in results must be for documents contained in these str files.

  • om – Dataframe of AQAnnotations of the Original Markup annotations. The annotations should be for the same documents contained in the results.

  • nrows – Number of results to display

  • offset – Number of characters before/after each annotation in results to display

  • highlightAnnotations – Dataframe of AQAnnotations that you would like to highlight in the results

Returns

HTML