|
__init__(self,
store,
max_candidates=10,
min_similarity=75,
max_length=70,
comparer=None,
usefuzzy=False)
max_candidates is the maximum number of candidates that should be
assembled, min_similarity is the minimum similarity that must be
attained to be included in the result, comparer is an optional
Comparer with similarity() function |
source code
|
|
|
usable(self,
unit)
Returns whether this translation unit is usable for TM |
source code
|
|
|
inittm(self,
stores,
reverse=False)
Initialises the memory for later use. |
source code
|
|
|
extendtm(self,
units,
store=None,
sort=True)
Extends the memory with extra unit(s). |
source code
|
|
|
setparameters(self,
max_candidates=10,
min_similarity=75,
max_length=70)
Sets the parameters without reinitialising the tm. |
source code
|
|
|
|
|
|
list
|
|
|
buildunits(self,
candidates)
Builds a list of units conforming to base API, with the score in the
comment |
source code
|
|
Inherited from object :
__delattr__ ,
__getattribute__ ,
__hash__ ,
__new__ ,
__reduce__ ,
__reduce_ex__ ,
__repr__ ,
__setattr__ ,
__str__
|