We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 731fc8e commit fd6800fCopy full SHA for fd6800f
test/src/edu/stanford/nlp/trees/UniversalPOSMapperTest.java
@@ -0,0 +1,17 @@
1
+package edu.stanford.nlp.trees;
2
+
3
+import org.junit.Assert;
4
+import org.junit.Test;
5
6
+import edu.stanford.nlp.trees.Tree;
7
8
+public class UniversalPOSMapperTest {
9
+ @Test
10
+ public void testMap() {
11
+ Tree tree = Tree.valueOf("(ROOT (S (NP (DT This)) (VP (VBZ is) (NP (DT a) (JJ simple) (NN test)))))");
12
+ Tree newTree = UniversalPOSMapper.mapTree(tree);
13
+ Tree expected = Tree.valueOf("(ROOT (S (NP (PRON This)) (VP (VERB is) (NP (DET a) (ADJ simple) (NOUN test)))))");
14
+ Assert.assertEquals(expected, newTree);
15
+ }
16
+}
17
0 commit comments