xappy.highlight

Package xappy :: Module highlight |
[frames] | no frames]

# Module highlight

source code
highlight.py: Highlight and summarise text.

Classes
| Highlighter Class for highlighting text and creating contextual summaries.

Variables
| __test__ = ``{``'``apostrophes``'``:` `'``\n\n >>> hl = Highlighter(\'en\``...``

Variables Details

  ### __test__ Value:
      {'apostrophes': '''

          >>> hl = Highlighter(\'en\')
          >>> hl.makeSample("A boring start.  Hello world\'s indeed.  A bori
      ng end.", [\'world\'], 40, (\'<\', \'>\'))
          "A boring start.  Hello <world\'s> indeed..."

          ''',
      ...