Examples of toBIOLayer()


Examples of edu.washington.cs.knowitall.nlp.extraction.SpanExtraction.toBIOLayer()

    @Test
    public void test6() {
        List<Range> ranges = getRanges(0,2, 2,3, 5,1);
        SpanExtraction extr = new SpanExtraction(sent, ranges);
        List<String> expected = split("B-field0 I-field0 B-field1 I-field1 I-field1 B-field2 O O O");
        assertEquals(expected, extr.toBIOLayer());
       
        extr = new SpanExtraction(sent, ranges, split("arg1 rel arg2"));
        expected = split("B-arg1 I-arg1 B-rel I-rel I-rel B-arg2 O O O");
        assertEquals(expected, extr.toBIOLayer());
    }
View Full Code Here

Examples of edu.washington.cs.knowitall.nlp.extraction.SpanExtraction.toBIOLayer()

        List<String> expected = split("B-field0 I-field0 B-field1 I-field1 I-field1 B-field2 O O O");
        assertEquals(expected, extr.toBIOLayer());
       
        extr = new SpanExtraction(sent, ranges, split("arg1 rel arg2"));
        expected = split("B-arg1 I-arg1 B-rel I-rel I-rel B-arg2 O O O");
        assertEquals(expected, extr.toBIOLayer());
    }

}
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.