kindred.manuallyAnnotate

kindred.manuallyAnnotate(corpus, candidateRelations)[source]

Provides a method for basic manual annotation of a series of candidate relations. Deals with a corpus, sentence by sentence, and prompts the user to annotate each candidate relation in turn. Can be exited before completion of the full list and the resulting annotations are split into an annotated corpus and unannotated corpus. Each document in the new corpora are individual sentences.

Parameters:
  • corpus (kindred.Corpus) – Corpus of text for annotation
  • candidateRelations (List of kindred.CandidateRelation) – List of candidate relations (created using CandidateBuilder) to manually review and annotate
Returns:

a tuple of an annotated corpus and unannotated corpus

Return type:

two kindred.Corpus