//MetaPhrase/com.github.diegoberaldin.metaphrase.domain.tm.usecase/GetSimilaritiesUseCase/invoke
invoke
[jvm]
abstract suspend operator fun invoke(segment: SegmentModel, projectId: Int, languageId: Int, threshold: Float = 0.75f): List<TranslationUnit>
Get a series of matches from the translation memory or the current project for a given segment.
Return
list of matching translation units
Parameters
jvm
segment | source message |
projectId | Project ID |
languageId | Language ID |
threshold | minimum similarity threshold |