public Annotations get(int from, int to, AnnotationClass annotationClass ) {
        return rootSpan.getAnnotation(from, to, annotationClass);
    }
Gets an annotation that is set on a substring.

This function first tries to find an annotation of annotationClass that
describe the range (from,to). If that does not exist, it tries to find the smallest range
which both contain (from,to) and has an annotation of annotationClass.
If that does not exist, null is returned.

For example, if these annotations has been set for the text "new york city":
i.annotate(0,3,"token") //new
i.annotate(4,8,"token") //york
i.annotate(9,13,"city") //tokem
i.annotate(0,8,"city") //new york
i.annotate(0,13,"city") //new york city

then:

i.get(0,3,"token") //returns "token" - annotation for"new"
i.get(0,3,"city") //returns "city" - annotation for "new york"
i.get(9,13,"city") //returns "city" - annotation for "new york city"

@param from start of the substring
@param to end of the substring
@param annotationClass class of the annotation
@return the anno
container-search/src/main/java/com/yahoo/text/interpretation/Interpretation.java