public class Context extends Object
Modifier and Type | Field and Description |
---|---|
String |
allContext |
String |
currentContext |
String[] |
leftContexts |
static char |
leftContextSeparator |
static double |
LOWEST_CONTEXT_SCORE |
int |
numLeftNeighbours |
int |
numRightNeighbours |
String[] |
rightContexts |
static char |
rightContextSeparator |
Constructor and Description |
---|
Context(Context existing) |
Context(Labels labels,
int currentLabelIndex,
int totalNeighbours) |
Context(Labels labels,
int currentLabelIndex,
int totalLeftNeighbours,
int totalRightNeighbours) |
Context(String allContextIn) |
Modifier and Type | Method and Description |
---|---|
double[] |
getPossibleScores() |
static void |
main(String[] args) |
double |
matchScore(Context context) |
void |
parseAllContext() |
void |
setAllContext() |
void |
setLeftContext(String[] leftContextIn) |
void |
setRightContext(String[] rightContextIn) |
void |
setScores() |
public int numLeftNeighbours
public int numRightNeighbours
public String allContext
public String[] leftContexts
public String currentContext
public String[] rightContexts
public static final char leftContextSeparator
public static final char rightContextSeparator
public static final double LOWEST_CONTEXT_SCORE
public Context(Context existing)
public Context(String allContextIn)
public Context(Labels labels, int currentLabelIndex, int totalNeighbours)
public Context(Labels labels, int currentLabelIndex, int totalLeftNeighbours, int totalRightNeighbours)
public void setLeftContext(String[] leftContextIn)
public void setRightContext(String[] rightContextIn)
public void setScores()
public double[] getPossibleScores()
public void setAllContext()
public void parseAllContext()
public double matchScore(Context context)
public static void main(String[] args)
Copyright © 2000–2016 DFKI GmbH. All rights reserved.