Aligned sentence object. Encapsulates two sentences along with an
Alignment between them.
|
|
__init__(self,
words=[],
mots=[],
alignment='',
encoding='latin-1')
Initialize a new AlignedSent. |
source code
|
|
|
|
|
|
boolean
|
|
string
|
|
string
|
|
|
AlignedSent
|
|
float or None
|
precision(self,
reference)
Calculates the precision of an aligned sentence with respect to a
"gold standard" reference AlignedSent. |
source code
|
|
float or None
|
recall(self,
reference)
Calculates the recall of an aligned sentence with respect to a
"gold standard" reference AlignedSent. |
source code
|
|
float or None
|
alignment_error_rate(self,
reference,
possible=None)
Calculates the Alignment Error Rate (AER) of an aligned sentence with
respect to a "gold standard" reference
AlignedSent. |
source code
|
|