public class CoNLLDependencyExtractorTest extends Object
Modifier and Type | Field and Description |
---|---|
static String |
CONCATONATED_PARSE |
static String |
DOUBLE_PARSE |
static String |
DOUBLE_ZERO_OFFSET_PARSE |
static String |
SECOND_PARSE |
static String |
SINGLE_PARSE |
Constructor and Description |
---|
CoNLLDependencyExtractorTest() |
Modifier and Type | Method and Description |
---|---|
protected void |
evaluateRelations(DependencyTreeNode node,
List<DependencyRelation> expectedRelations)
A simple function that tests the neighbors for a given relation.
|
void |
testConcatonatedTrees() |
void |
testConcatonatedTreesZeroOffset() |
void |
testDoubleExtraction() |
protected void |
testFirstRoot(DependencyTreeNode[] relations,
int index)
A simple helper method for checking that the root node in the first
sentence is correctly linked up."
|
void |
testRootNode() |
protected void |
testSecondRoot(DependencyTreeNode[] relations,
int index)
A simple helper method for checking that the root node in the second
sentence is correctly linked up."
|
void |
testSingleExtraction() |
public static final String SINGLE_PARSE
public static final String SECOND_PARSE
public static final String DOUBLE_PARSE
public static final String CONCATONATED_PARSE
public static final String DOUBLE_ZERO_OFFSET_PARSE
protected void evaluateRelations(DependencyTreeNode node, List<DependencyRelation> expectedRelations)
relation
.protected void testFirstRoot(DependencyTreeNode[] relations, int index)
protected void testSecondRoot(DependencyTreeNode[] relations, int index)
Copyright © 2012. All Rights Reserved.