|
||||||||||
| 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.Connection
public class Connection
This class is for the connection rules of morphemes. It is used to check whether the morphemes can appear consecutively.
| Field Summary | |
|---|---|
java.lang.String |
author
The author of the connection rules. |
private boolean[][] |
connectionTable
The connectoin table which has the connection information ofo morphemes |
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. |
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 | |
|---|---|
Connection()
Constructor. |
|
| Method Summary | |
|---|---|
boolean |
checkConnection(TagSet tagSet,
int tag1,
int tag2,
int len1,
int len2,
int typeOfTag2)
Checks whether two morpheme tags can appear consecutively. |
void |
clear()
Cleans the connection rules and metadata. |
void |
init(java.lang.String filePath,
int tagCount,
TagSet tagSet)
Initialize the connection rules from the rule data file. |
private void |
readFile(java.lang.String filePath,
int tagCount,
TagSet tagSet)
Reads the connection rule data file, and initialize the object. |
| 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 boolean[][] connectionTable
| Constructor Detail |
|---|
public Connection()
| Method Detail |
|---|
public boolean checkConnection(TagSet tagSet,
int tag1,
int tag2,
int len1,
int len2,
int typeOfTag2)
tagSet - - morpheme tag settag1 - - the first morpheme tag to checktag2 - - the second morpheme tag to checklen1 - - the length of the first morphemelen2 - - the length of the second morphemetypeOfTag2 - - the tag type of the second morpheme tag
public void clear()
public void init(java.lang.String filePath,
int tagCount,
TagSet tagSet)
throws java.io.IOException
filePath - - the path for the connection rule data filetagCount - - the number of the total tagstagSet - - the tag set which is used in the connection rules
java.io.IOException
private void readFile(java.lang.String filePath,
int tagCount,
TagSet tagSet)
throws java.io.IOException
filePath - - the path for the connection rule filetagCount - - the number of total tags in the tag settagSet - - the tag set which is used in the connection rules
java.io.IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||