Adding Data – Annotation

Use this model type to extract structure information from unstructured text. This model type takes annotated documents (from a labeling tool like and trains a custom collection to replicate how you’ve highlighted words and phrases in your training data. Train an annotation custom collection for custom named entity recognition, highlighting price mentions in text, or extracting positive and negative sentiment phrases from reviews.

Adding data for this type of model requires a set of character offsets bounding values from the start of the sample as shown below.

    "Eastman Kodak Co is raising 25 mln dlrs through an offering of notes due 1997, said sole underwriter Morgan Stanley and Co Inc...",
        {'start': 0, 'end': 16, 'label': 'label-1', 'text': 'Eastman Kodak Co'},
        {'start': 101, 'end': 127, 'label': 'label-1', 'text': 'Morgan Stanley and Co Inc.'}