public class CharBasedSyntacticProbabilityModel extends Object implements SyntacticProbabilityModel
Constructor and Description |
---|
CharBasedSyntacticProbabilityModel(double sigma) |
Modifier and Type | Method and Description |
---|---|
double |
calculateNormalDistribution(double input)
Calculates not the actual normal distribution N(input|0,sigma) /
N(0|0,sigma)
|
double |
calculateSyntacticProbability(AnnotationCandidate a,
AnnotationCandidate b)
Returns the probability that two given AnnotationCandidates belong
together from a syntactic perspective.
|
int |
getMaximumCharBasedRange()
Returns a heuristic approximation which region of the text should be
considered at all from a syntactic perspective.
|
public CharBasedSyntacticProbabilityModel(double sigma)
sigma
- Sigma determines after how many characters distance the
syntactic probability is reduced to 63%.public double calculateNormalDistribution(double input)
input
- the input for the density function.public double calculateSyntacticProbability(AnnotationCandidate a, AnnotationCandidate b)
calculateSyntacticProbability
in interface SyntacticProbabilityModel
a
- the first candidate.b
- the second candidate.public int getMaximumCharBasedRange()
getMaximumCharBasedRange
in interface SyntacticProbabilityModel
Copyright (C) 2013, 2014 Raphael Dickfelder, Jan Göpfert, Benjamin Paassen, Andreas Stöckel, licensed under the AGPL v. 3: http://openresearch.cit-ec.de/projects/scie