public final class PersistentTrieTree
extends java.lang.Object
History:
Constructor and Description |
---|
PersistentTrieTree(java.lang.String triePath,
java.lang.String rulePath,
java.lang.String exceptionPath)
Creates an object of LVG persistent trie tree, using path names of
trie, rules, and exception files.
|
Modifier and Type | Method and Description |
---|---|
void |
BuildPersistentTrieTree(boolean isInflection)
Establishes a radom access file from a flat file for a persistent trie
tree.
|
void |
BuildPersistentTrieTree(java.lang.String inFile)
Establishes a radom access file from a flat file for a persistent trie
tree.
|
void |
Close()
Close the random access file of persistent trie.
|
static void |
main(java.lang.String[] args)
A executable program for LVG developers to create radom access files
for inflections and derivations from flat files.
|
void |
PrintPersistentTrieTree()
Print the detail information of the current persistent trie tree.
|
public PersistentTrieTree(java.lang.String triePath, java.lang.String rulePath, java.lang.String exceptionPath)
triePath
- the path of trie filerulePath
- the path of rulesexceptionPath
- the path of exceptionspublic void BuildPersistentTrieTree(java.lang.String inFile) throws java.io.IOException
inFile
- the input rule flat file: inflection or derivation.java.io.IOException
- if probelms happens when accessing random access
filepublic void BuildPersistentTrieTree(boolean isInflection) throws java.io.IOException
isInflection
- true or false if the persistent trie tree is
inflection or derivation.java.io.IOException
- if probelms happens when accessing random access
filepublic void PrintPersistentTrieTree() throws java.io.IOException
java.io.IOException
- if probelms happens when accessing random access
filepublic void Close() throws java.io.IOException
java.io.IOException
- if probelms happens when accessing random access
filepublic static void main(java.lang.String[] args)
args
- arguments