edu.washington.cs.knowitall.util
Class TableBasedSentencePatternizer
java.lang.Object
edu.washington.cs.knowitall.util.PosSentencePatternizer
edu.washington.cs.knowitall.util.TableBasedSentencePatternizer
public class TableBasedSentencePatternizer
- extends PosSentencePatternizer
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TableBasedSentencePatternizer
public TableBasedSentencePatternizer()
TableBasedSentencePatternizer
public TableBasedSentencePatternizer(java.util.HashMap<java.lang.String,java.lang.Character> tokenTable,
java.util.HashMap<java.lang.String,java.lang.Character> posTagTable)
TableBasedSentencePatternizer
public TableBasedSentencePatternizer(java.io.File tokenTableFile,
java.io.File posTagTableFile)
throws java.io.IOException
- Throws:
java.io.IOException
readTable
public static java.util.HashMap<java.lang.String,java.lang.Character> readTable(java.io.File file)
throws java.io.IOException
- Throws:
java.io.IOException
setTokenTable
public void setTokenTable(java.io.File file)
throws java.io.IOException
- Throws:
java.io.IOException
setPosTagTable
public void setPosTagTable(java.io.File file)
throws java.io.IOException
- Throws:
java.io.IOException
setTokenTable
public void setTokenTable(java.util.HashMap<java.lang.String,java.lang.Character> table)
setPosTagTable
public void setPosTagTable(java.util.HashMap<java.lang.String,java.lang.Character> table)
getPatternChar
public char getPatternChar(PosTagged sentence,
int i)
- Specified by:
getPatternChar
in class PosSentencePatternizer