public class FrenchTreebankUDUpdater
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.util.HashSet<java.lang.String> |
acceptableHyphenMergeTags |
static java.util.HashSet<java.lang.String> |
acceptableMWTPostSplitTags |
static LabeledScoredTreeFactory |
factory |
static java.lang.String |
taggerPath |
static java.util.HashMap<java.lang.String,java.lang.String> |
wordToSplit |
Constructor and Description |
---|
FrenchTreebankUDUpdater() |
Modifier and Type | Method and Description |
---|---|
static Tree |
createTagAndWordNode(java.lang.String tag,
java.lang.String word) |
static void |
fixMWNWithHyphen(Tree parentTree,
Tree mwnChildTree,
int mwnIndex)
Given a tree with an MWN child that contains a (PUNC -), merge and potentially remove MWN
|
static void |
fixNPWithHyphen(Tree parentTree)
Given a tree with an NP child that contains a (PUNC -), merge and potentially remove MWN
|
static void |
fixPREFEndingWithHyphen(Tree parentTree)
Given a tree with (PREF .*-), merge hypen into next token
|
static void |
main(java.lang.String[] args) |
public static LabeledScoredTreeFactory factory
public static java.util.HashMap<java.lang.String,java.lang.String> wordToSplit
public static java.util.HashSet<java.lang.String> acceptableMWTPostSplitTags
public static java.util.HashSet<java.lang.String> acceptableHyphenMergeTags
public static java.lang.String taggerPath
public static void fixNPWithHyphen(Tree parentTree)
public static void fixMWNWithHyphen(Tree parentTree, Tree mwnChildTree, int mwnIndex)
public static void fixPREFEndingWithHyphen(Tree parentTree)
public static Tree createTagAndWordNode(java.lang.String tag, java.lang.String word)
public static void main(java.lang.String[] args) throws java.io.IOException
java.io.IOException