| Package | Description |
|---|---|
| net.sf.okapi.common.query |
Helper classes for the translation resources connectors.
|
| net.sf.okapi.connectors.globalsight | |
| net.sf.okapi.connectors.google | |
| net.sf.okapi.connectors.kantan | |
| net.sf.okapi.connectors.microsoft | |
| net.sf.okapi.connectors.mymemory | |
| net.sf.okapi.connectors.pensieve | |
| net.sf.okapi.connectors.tda | |
| net.sf.okapi.connectors.translatetoolkit | |
| net.sf.okapi.lib.translation |
Interfaces and classes for accessing translation resources.
|
| Modifier and Type | Method and Description |
|---|---|
QueryResult |
IQuery.next()
Gets the next hit for the last query.
|
| Modifier and Type | Method and Description |
|---|---|
List<List<QueryResult>> |
IQuery.batchQuery(List<TextFragment> fragments)
Starts a batch query for a given list of
TextFragments. |
List<List<QueryResult>> |
IQuery.batchQueryText(List<String> plainTexts)
Starts a batch query for a given list of plain texts.
|
| Modifier and Type | Method and Description |
|---|---|
int |
QueryResult.compareTo(QueryResult other)
This method implements a five way sort on (1) weight (2)
MatchType (3) Score (4) source string match and (5) creation
date. |
| Modifier and Type | Method and Description |
|---|---|
QueryResult |
GlobalSightTMConnector.next() |
| Modifier and Type | Method and Description |
|---|---|
List<List<QueryResult>> |
GlobalSightTMConnector.batchQuery(List<TextFragment> fragments) |
| Modifier and Type | Method and Description |
|---|---|
protected <T> List<List<QueryResult>> |
GoogleMTv2Connector._batchQuery(List<String> texts,
List<T> originalTexts,
net.sf.okapi.connectors.google.QueryResultBuilder<T> qrBuilder) |
List<List<QueryResult>> |
GoogleMTv2Connector.batchQuery(List<TextFragment> fragments) |
List<List<QueryResult>> |
GoogleMTv2Connector.batchQueryText(List<String> plainTexts) |
protected <T> List<List<QueryResult>> |
GoogleMTv2Connector.flushQuery(GoogleQueryBuilder<T> qb,
net.sf.okapi.connectors.google.QueryResultBuilder<T> qrBuilder) |
| Modifier and Type | Method and Description |
|---|---|
QueryResult |
KantanMTv21Connector.next() |
QueryResult |
KantanMTConnector.next()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
List<List<QueryResult>> |
KantanMTv21Connector.batchQuery(List<TextFragment> fragments) |
List<List<QueryResult>> |
KantanMTConnector.batchQuery(List<TextFragment> fragments)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
QueryResult |
MicrosoftMTConnector.next() |
| Modifier and Type | Method and Description |
|---|---|
protected <T> List<List<QueryResult>> |
MicrosoftMTConnector._batchQuery(List<String> texts,
List<T> originalText,
net.sf.okapi.connectors.microsoft.QueryResultBuilder<T> qrBuilder) |
protected <T> List<List<QueryResult>> |
MicrosoftMTConnector._subBatchQuery(List<String> texts,
List<T> originalText,
net.sf.okapi.connectors.microsoft.QueryResultBuilder<T> qrBuilder) |
List<List<QueryResult>> |
MicrosoftMTConnector.batchQuery(List<TextFragment> fragments) |
List<List<QueryResult>> |
MicrosoftMTConnector.batchQueryText(List<String> plainTexts) |
| Modifier and Type | Method and Description |
|---|---|
QueryResult |
MyMemoryTMConnector.next() |
| Modifier and Type | Method and Description |
|---|---|
List<List<QueryResult>> |
MyMemoryTMConnector.batchQuery(List<TextFragment> fragments) |
| Modifier and Type | Method and Description |
|---|---|
QueryResult |
PensieveTMConnector.next() |
| Modifier and Type | Method and Description |
|---|---|
QueryResult |
TDASearchConnector.next() |
| Modifier and Type | Method and Description |
|---|---|
List<List<QueryResult>> |
TDASearchConnector.batchQuery(List<TextFragment> fragments) |
| Modifier and Type | Method and Description |
|---|---|
QueryResult |
TranslateToolkitTMConnector.next() |
| Modifier and Type | Method and Description |
|---|---|
List<List<QueryResult>> |
TranslateToolkitTMConnector.batchQuery(List<TextFragment> fragments) |
| Modifier and Type | Field and Description |
|---|---|
protected QueryResult |
BaseConnector.result |
| Modifier and Type | Method and Description |
|---|---|
QueryResult |
QueryManager.next()
Gets the next hit for the last query.
|
QueryResult |
BaseConnector.next() |
| Modifier and Type | Method and Description |
|---|---|
List<List<QueryResult>> |
BaseConnector.batchQuery(List<TextFragment> fragments)
Slow default implementation using query!!
Override to take advantage of servers batch API
|
List<List<QueryResult>> |
BaseConnector.batchQueryText(List<String> plainTexts) |
List<QueryResult> |
QueryManager.getResults()
Gets the list of all hit results of the last query.
|
static ArrayList<QueryResult> |
QueryUtil.removeDuplicates(List<QueryResult> queryResults)
Removes duplicates based on the Equals method of
QueryResult. |
| Modifier and Type | Method and Description |
|---|---|
static ArrayList<QueryResult> |
QueryUtil.removeDuplicates(List<QueryResult> queryResults)
Removes duplicates based on the Equals method of
QueryResult. |
Copyright © 2022. All rights reserved.