@Deprecated public class KantanMTConnector extends BaseConnector
open() method.| Constructor and Description |
|---|
KantanMTConnector()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
List<List<QueryResult>> |
batchQuery(List<TextFragment> fragments)
Deprecated.
Slow default implementation using query!!
Override to take advantage of servers batch API
|
void |
close()
Deprecated.
Closes this connector.
|
protected int |
getConnectionTimeout()
Deprecated.
|
String |
getName()
Deprecated.
Gets the name of the connector.
|
KantanMTConnectorParameters |
getParameters()
Deprecated.
Gets the current parameters of this connector.
|
protected String |
getServerURL()
Deprecated.
|
String |
getSettingsDisplay()
Deprecated.
Gets a display representation of the current settings for this connector.
|
protected int |
getSocketTimeout()
Deprecated.
|
boolean |
hasNext()
Deprecated.
Indicates of there is a hit available.
|
QueryResult |
next()
Deprecated.
Gets the next hit for the last query.
|
void |
open()
Deprecated.
Opens this query engine.
|
int |
query(String plainText)
Deprecated.
Starts a query for a give plain text.
|
int |
query(TextFragment tf)
Deprecated.
Starts a query for a given text.
|
batchLeverage, batchLeverageUsingBatchQuery, batchQueryText, clearAttributes, getNoQueryThreshold, getSourceLanguage, getTargetLanguage, getWeight, leverage, leverageUsingBatchQuery, removeAttribute, setAttribute, setLanguages, setNoQueryThreshold, setParameters, setRootDirectory, setWeight, toInternalCodeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEachRemaining, removeprotected String getServerURL()
protected int getConnectionTimeout()
protected int getSocketTimeout()
public String getName()
IQuerypublic String getSettingsDisplay()
IQuerypublic void open()
IQuerypublic void close()
IQuerypublic KantanMTConnectorParameters getParameters()
IQuerygetParameters in interface IQuerygetParameters in class BaseConnectorpublic int query(String plainText)
IQueryplainText - text to query.public int query(TextFragment tf)
IQuerytf - The text to query.public boolean hasNext()
IQueryhasNext in interface Iterator<QueryResult>hasNext in interface IQueryhasNext in class BaseConnectorpublic QueryResult next()
IQuerynext in interface Iterator<QueryResult>next in interface IQuerynext in class BaseConnectorpublic List<List<QueryResult>> batchQuery(List<TextFragment> fragments)
BaseConnectorbatchQuery in interface IQuerybatchQuery in class BaseConnectorfragments - list of the text fragments to translate.Copyright © 2021. All rights reserved.