|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.folt.models.datamodel.TranslationStatistics
public class TranslationStatistics
This class contains statistic data for a match. Currently it has two main
properties:
Basic idea: A translation was found for a source - target language pair. Now
additional statistics are computed: First how many translations does this
source segment have in languages except the target language. This is done for
all "non target languages"
targetMatches
iNumberOfMatchingSourcesForTarget - this number contains the number of source
segments for all found target segments (inverse counter). Thus if a target
segment has more than one corresponding source segment (except the found) one
this value is incremented.
specifity - specifity of a translation - 0 (bad) - 1 (excellent) - the less
target translation a source has the better; the less alternative source
translation the better; the less traget - other language number translation
the better; more "target languages" the better; a further extension could
deal with looking at similarity matches too to improve this quality measure
for a whole tm database
| Constructor Summary | |
|---|---|
TranslationStatistics()
Generate an empty statistics instance |
|
TranslationStatistics(XliffDocument xliffDocument)
Generate an empty statistics instance |
|
| Method Summary | |
|---|---|
void |
addTargetStatistics(java.lang.String language,
int iNumber)
Set the number of matching sources for the targets found for match |
double |
computeSpecifity()
Compute the specifity of the translation |
double |
getAtnWeight()
|
int |
getiNumberOfMatchingSourcesForTarget()
|
int |
getNumberOfMatchingSourcesForTarget()
Get the number of target - source language matches |
double |
getSnWeight()
|
double |
getSpecifity()
|
java.util.Hashtable<java.lang.String,java.lang.Integer> |
getTargetMatches()
Get the number hashtable for the source - target matches independently of the language |
int |
getTargetMatches(java.lang.String language)
Get the matching number for this source segment given the source language |
double |
getTnWeight()
|
void |
incNumberOfMatchingSourcesForTarget()
Increase the number of target - source matches |
void |
incTargetStatistics(java.lang.String language)
Increment the target language number for a given target language |
static void |
main(java.lang.String[] args)
|
void |
setAtnWeight(double atnWeight)
|
void |
setiNumberOfMatchingSourcesForTarget(int iNumberOfMatchingSourcesForTarget)
|
void |
setNumberOfMatchingSourcesForTarget(int numberOfMatchingSourcesForTarget)
|
void |
setSnWeight(double snWeight)
|
void |
setSpecifity(double specifity)
|
void |
setSpecifity(float specifity)
|
void |
setTargetMatches(java.util.Hashtable<java.lang.String,java.lang.Integer> targetMatches)
|
void |
setTnWeight(double tnWeight)
|
org.jdom.Element |
toProp()
Create a prop-group representation of the Statistics |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TranslationStatistics()
public TranslationStatistics(XliffDocument xliffDocument)
| Method Detail |
|---|
public static void main(java.lang.String[] args)
args -
public void addTargetStatistics(java.lang.String language,
int iNumber)
language - the "other" target languagesiNumber - the number of matchespublic double computeSpecifity()
public double getAtnWeight()
public int getiNumberOfMatchingSourcesForTarget()
public int getNumberOfMatchingSourcesForTarget()
public double getSnWeight()
public double getSpecifity()
public java.util.Hashtable<java.lang.String,java.lang.Integer> getTargetMatches()
public int getTargetMatches(java.lang.String language)
language - the language to search for
public double getTnWeight()
public void incNumberOfMatchingSourcesForTarget()
public void incTargetStatistics(java.lang.String language)
language - the language to increment forpublic void setAtnWeight(double atnWeight)
public void setiNumberOfMatchingSourcesForTarget(int iNumberOfMatchingSourcesForTarget)
public void setNumberOfMatchingSourcesForTarget(int numberOfMatchingSourcesForTarget)
numberOfMatchingSourcesForTarget - public void setSnWeight(double snWeight)
public void setSpecifity(double specifity)
public void setSpecifity(float specifity)
public void setTargetMatches(java.util.Hashtable<java.lang.String,java.lang.Integer> targetMatches)
targetMatches - public void setTnWeight(double tnWeight)
public org.jdom.Element toProp()
xliffDocument - the cliffDocument for the Statistics
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||