Package at.ofai.gate.virtualdocuments

Examples of at.ofai.gate.virtualdocuments.OffsetMapping


    AnnotatedDocumentTransformer adt =
            new AnnotatedDocumentTransformer(annSpecs,procSpecs,true,true);
    String theString1 = adt.getStringForDocument(testDoc01In,"");
    assertEquals("time_modifier is a simple test document for testing the PN class . stop contains token annotations in the default annotation set from person_first and some additional manual annotations .", theString1);

    OffsetMapping bom = adt.getBackwardOffsetMap();
    OffsetMapping fom = adt.getForwardOffsetMap();
    // test some backward mappings
    assertEquals("Backward mapping of 'is' start - start offset", 5, bom.getFrom(14));
    assertEquals("Backward mapping of 'is' start - end offset", 7, bom.getTo(14));
    assertEquals("Backward mapping of 'is' end - start offset", 5, bom.getFrom(15));
    assertEquals("Backward mapping of 'is' end - end offset", 7, bom.getTo(15));
View Full Code Here

TOP

Related Classes of at.ofai.gate.virtualdocuments.OffsetMapping

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.