public class Pretree extends Object implements Serializable
| Modifier and Type | Field and Description |
|---|---|
static int |
getExact |
static int |
getLower |
static int |
getUpper |
| Constructor and Description |
|---|
Pretree() |
Pretree(int sc,
int ec,
int az,
int ak,
int eow,
boolean rv,
boolean ic,
char[] stringtree) |
| Modifier and Type | Method and Description |
|---|---|
Vector |
classDistribution(String w) |
String |
classify(String word) |
String |
getAllEntriesString()
gives all entries; each line: entry tab classes;
|
boolean |
getIgnoreCase() |
int |
getNrOfClasses()
zaehlt Anzahl verschiedener Klassen im Baum
|
int |
getNrOfNodes()
zaehlt Anzahl Blaetter im Baum, bei einem geprunetem Baum Anzahl der
repraesentierten, nicht die wirkliche Anzahl Blaetter des Restbaumes
|
double |
getProbabilityForClass_string(String word,
String cla) |
double |
getProbabilityForClass(String word,
String cla) |
boolean |
getReverse() |
double |
getThresh() |
String |
giveReason(String w) |
Set |
keySet()
gives the key set of the pretree
|
void |
load(String filename) |
static void |
main(String[] args) |
static void |
printHelp() |
void |
prune() |
void |
save(String filename) |
void |
setAchtungKnoten(int c) |
void |
setAchtungZahl(int c) |
void |
setEndChar(int c) |
void |
setEndOfWordChar(int c) |
void |
setIgnoreCase(boolean b) |
void |
setReverse(boolean b) |
void |
setStartChar(int c) |
void |
setThresh(double d) |
Map |
toMap()
gives a map view of the pretree
|
void |
train(String word,
String cla)
trains, that word is of class cla
|
void |
train(String word,
String cla,
int nr)
trains, that word is of class cla with number nr of occurrences
|
void |
ttyout() |
public static final int getExact
public static final int getUpper
public static final int getLower
public Pretree()
public Pretree(int sc,
int ec,
int az,
int ak,
int eow,
boolean rv,
boolean ic,
char[] stringtree)
public void setStartChar(int c)
public void setEndChar(int c)
public void setAchtungZahl(int c)
public void setAchtungKnoten(int c)
public void setEndOfWordChar(int c)
public void setThresh(double d)
public double getThresh()
public void setIgnoreCase(boolean b)
public void setReverse(boolean b)
public boolean getIgnoreCase()
public boolean getReverse()
public void prune()
public void train(String word, String cla, int nr)
public int getNrOfClasses()
public int getNrOfNodes()
public void ttyout()
public Map toMap()
public Set keySet()
public String getAllEntriesString()
public void save(String filename) throws IOException
IOExceptionpublic void load(String filename)
public static void printHelp()
public static void main(String[] args)
Copyright © 2013. All rights reserved.