|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectkr.ac.kaist.swrc.jhannanum.plugin.MajorPlugin.MorphAnalyzer.ChartMorphAnalyzer.ConnectionNot
public class ConnectionNot
This class is for the impossible connection rules of morphemes. It is used to check whether morphemes may not appear consecutively.
Field Summary | |
---|---|
java.lang.String |
author
The author of the connection rules. |
java.lang.String |
copyright
The copyright of the connection rules. |
java.lang.String |
date
The date when the connection rules are updated. |
java.lang.String |
editor
The people who edited the connection rules. |
private java.lang.String[][] |
notMorphTable
Table for the morphemes that cannot appear consecutively |
private int[][] |
notTagTable
Table for the tags that cannot appear consecutively |
private int |
ruleCount
The number of impossible connection rules |
java.lang.String |
startTag
Start tag. |
java.lang.String |
title
The name of the connection rules. |
java.lang.String |
version
The version of the connection rules. |
Constructor Summary | |
---|---|
ConnectionNot()
Constructor. |
Method Summary | |
---|---|
boolean |
checkConnection()
Checks whether the two morphemes may not appear consecutively. |
void |
clear()
Cleans the rules loaded and metadata. |
void |
init(java.lang.String filePath,
TagSet tagSet)
Initializes the object with the specified file for impossible connection rules. |
private void |
readFile(java.lang.String filePath,
TagSet tagSet)
Reads the impossible connection rules from the specified file. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public java.lang.String title
public java.lang.String version
public java.lang.String copyright
public java.lang.String author
public java.lang.String date
public java.lang.String editor
public java.lang.String startTag
private int[][] notTagTable
private java.lang.String[][] notMorphTable
private int ruleCount
Constructor Detail |
---|
public ConnectionNot()
Method Detail |
---|
public boolean checkConnection()
public void clear()
public void init(java.lang.String filePath, TagSet tagSet) throws java.io.IOException
filePath
- - the file for the impossible connection rulestagSet
- - the morpheme tag set used in the rules
java.io.IOException
private void readFile(java.lang.String filePath, TagSet tagSet) throws java.io.IOException
filePath
- - the file for the impossible connection rulestagSet
- - the morpheme tag set used in the rules
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |