edu.upenn.cis.pdtb.scripts
Class FixGornAddresses
java.lang.Object
edu.upenn.cis.pdtb.scripts.FixGornAddresses
- public class FixGornAddresses
- extends java.lang.Object
- Author:
- nikhild
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
pdtbRoot
public static final java.lang.String pdtbRoot
- See Also:
- Constant Field Values
ptbRoot
public static final java.lang.String ptbRoot
- See Also:
- Constant Field Values
textRoot
public static final java.lang.String textRoot
- See Also:
- Constant Field Values
connHeadListFile
public static final java.lang.String connHeadListFile
- See Also:
- Constant Field Values
root
public static PTBTreeNode root
connHeadMap
public static java.util.HashMap connHeadMap
addressesToCheck
public static java.util.Vector addressesToCheck
FixGornAddresses
public FixGornAddresses(PDTBRelationList relList,
java.io.Writer writer)
throws java.io.IOException
- Creates a new instance of FixGornAddresses
computeRawStr
public java.lang.String computeRawStr(SpanList spans,
java.lang.String text)
getConnHead
public java.lang.String getConnHead(java.lang.String rawStr)
throws java.io.IOException
- Throws:
java.io.IOException
loadConnHeadMap
public static java.util.HashMap loadConnHeadMap()
throws java.io.IOException
- Throws:
java.io.IOException
punctOrTraceContainer
public static boolean punctOrTraceContainer(PTBTreeNode node)
isAddressContained
public static boolean isAddressContained(int[] address)
modifyAddresses
public static void modifyAddresses(GornAddressList gal,
PTBTreeNode root)
isClause
public static boolean isClause(PTBTreeNode node)
main
public static void main(java.lang.String[] args)
- Parameters:
args - the command line arguments