A B C E F G H I L M N P Q R S T
All Classes All Packages
All Classes All Packages
All Classes All Packages
A
- addAndInitializeResource(String, String, ClassLoader, String) - Method in class net.sf.okapi.lib.translation.QueryManager
-
Creates a translation resource and its parameters from their class names, adds it to the manager and initializes it with the current source and target language of this manager, as well as any attributes that is set, and the current threshold and maximum hits if it is relevant.
- addAndInitializeResource(String, String, String) - Method in class net.sf.okapi.lib.translation.QueryManager
-
Creates a translation resource and its parameters from their class names, adds it to the manager and initializes it with the current source and target language of this manager, as well as any attributes that is set, and the current threshold and maximum hits if it is relevant.
- addAndInitializeResource(IQuery, String, IParameters) - Method in class net.sf.okapi.lib.translation.QueryManager
-
Adds a translation resource to the manager and initializes it with the current source and target language of this manager, as well as any attributes that is set, and the current threshold and maximum hits if it is relevant.
- addResource(IQuery, String) - Method in class net.sf.okapi.lib.translation.QueryManager
-
Adds a translation resource to the manager.
B
- BaseConnector - Class in net.sf.okapi.lib.translation
-
Abstract implementation of the
IQueryinterface. - BaseConnector() - Constructor for class net.sf.okapi.lib.translation.BaseConnector
- batchLeverage(List<ITextUnit>) - Method in class net.sf.okapi.lib.translation.BaseConnector
-
Slow default implementation using leverage(TextUnit).
- batchLeverageUsingBatchQuery(List<ITextUnit>) - Method in class net.sf.okapi.lib.translation.BaseConnector
-
Call this method inside the overriding
BaseConnector.batchLeverage(List)method of the derived class, if that class offers a fastBaseConnector.batchQuery(List)method. - batchQuery(List<TextFragment>) - Method in class net.sf.okapi.lib.translation.BaseConnector
-
Slow default implementation using query!! Override to take advantage of servers batch API
- batchQueryText(List<String>) - Method in class net.sf.okapi.lib.translation.BaseConnector
C
- canLeverage(Segment, Segment, boolean, boolean) - Static method in class net.sf.okapi.lib.translation.QueryManager
-
Indicates if we can fill a given target segment with leveraged translation based on whether it is empty and whether it is the same as the source segment.
- canLeverage(TextContainer, TextContainer, boolean, boolean) - Static method in class net.sf.okapi.lib.translation.QueryManager
-
Indicates if we can fill a given target TextContent with leveraged translation based on whether it is empty and whether it is the same as the source TextContent.
- clearAttributes() - Method in class net.sf.okapi.lib.translation.BaseConnector
- clearAttributes() - Method in class net.sf.okapi.lib.translation.QueryManager
-
Removes all attributes from this manager and all the translation resources in this manager.
- close() - Method in class net.sf.okapi.lib.translation.QueryManager
-
Closes all translation resources in this manager.
- compare(TextFragment, TextFragment, int) - Method in class net.sf.okapi.lib.translation.TextMatcher
-
Compare two textFragment content.
- compareToBaseTokens(String, List<String>, TextFragment) - Method in class net.sf.okapi.lib.translation.TextMatcher
-
Compare a list of tokens to a
TextFragmentobject. - createNewFragmentWithCodes(String) - Method in class net.sf.okapi.lib.translation.QueryUtil
-
Appends the codes stored apart using
QueryUtil.separateCodesFromText(TextFragment)at the end of a given plain text. - current - Variable in class net.sf.okapi.lib.translation.BaseConnector
E
- enabled - Variable in class net.sf.okapi.lib.translation.ResourceItem
-
A flags indicating if this resource is to be used or not.
F
- fromCodedHTML(String, TextFragment, boolean) - Method in class net.sf.okapi.lib.translation.QueryUtil
-
Converts back a coded HTML to a coded text.
- fromCodedHTML(String, TextFragment, boolean, boolean) - Method in class net.sf.okapi.lib.translation.QueryUtil
-
Converts back a coded HTML to a coded text.
- fromCodedHTMLToFragment(String, TextFragment) - Method in class net.sf.okapi.lib.translation.QueryUtil
-
Converts an HTML string created with
QueryUtil.toCodedHTML(TextFragment)back into a text fragment, but with empty inline codes. - fromXLIFF(Element, TextFragment) - Method in class net.sf.okapi.lib.translation.QueryUtil
-
Converts back an XLIFF text contained in a given element into a TextFragment.
G
- getExactBestMatches() - Method in class net.sf.okapi.lib.translation.QueryManager
-
Gets the number of best matches that are exact (100%) since the last call to
QueryManager.resetCounters(). - getFuzzyBestMatches() - Method in class net.sf.okapi.lib.translation.QueryManager
-
Gets the number of best matches that are fuzzy (less that 100%, more than 0%) since the last call to
QueryManager.resetCounters(). - getInterface(int) - Method in class net.sf.okapi.lib.translation.QueryManager
-
Gets the IQuery interface for a given translation resource.
- getMaximumHits() - Method in interface net.sf.okapi.lib.translation.ITMQuery
-
Gets the current maximum number of hits to retrieve.
- getName(int) - Method in class net.sf.okapi.lib.translation.QueryManager
-
Gets the name for a given translation resource.
- getNoQueryThreshold() - Method in class net.sf.okapi.lib.translation.BaseConnector
- getParameters() - Method in class net.sf.okapi.lib.translation.BaseConnector
- getResource(int) - Method in class net.sf.okapi.lib.translation.QueryManager
-
Gets the configuration data for a given translation resource.
- getResources() - Method in class net.sf.okapi.lib.translation.QueryManager
-
Gets the configuration data for all the translation resources in this manager.
- getResults() - Method in class net.sf.okapi.lib.translation.QueryManager
-
Gets the list of all hit results of the last query.
- getSourceLanguage() - Method in class net.sf.okapi.lib.translation.BaseConnector
- getSourceLanguage() - Method in class net.sf.okapi.lib.translation.QueryManager
-
Gets the current source locale for this manager.
- getTargetLanguage() - Method in class net.sf.okapi.lib.translation.BaseConnector
- getTargetLanguage() - Method in class net.sf.okapi.lib.translation.QueryManager
-
Gets the current target locale for this manager.
- getThreshold() - Method in interface net.sf.okapi.lib.translation.ITMQuery
-
Gets the current threshold value to use for the query.
- getTotalSegments() - Method in class net.sf.okapi.lib.translation.QueryManager
-
Gets the total number of segments processed since the last call to
QueryManager.resetCounters(). - getWeight() - Method in class net.sf.okapi.lib.translation.BaseConnector
H
- hasCode() - Method in class net.sf.okapi.lib.translation.QueryUtil
-
Indicates if the last text fragment passed to
QueryUtil.separateCodesFromText(TextFragment)has codes or not. - hasNext() - Method in class net.sf.okapi.lib.translation.BaseConnector
- hasNext() - Method in class net.sf.okapi.lib.translation.QueryManager
-
Indicates of there is a hit available.
I
- IGNORE_CASE - Static variable in class net.sf.okapi.lib.translation.TextMatcher
-
Flag indicating to ignore case differences.
- IGNORE_PUNCTUATION - Static variable in class net.sf.okapi.lib.translation.TextMatcher
-
Flag indication to ignore punctuation differences.
- IGNORE_WHITESPACES - Static variable in class net.sf.okapi.lib.translation.TextMatcher
-
Flag indicating to ignore whitespaces differences.
- ITMQuery - Interface in net.sf.okapi.lib.translation
-
Provides the methods common to all query engines of translation resources that are translation memory systems.
L
- leverage(ITextUnit) - Method in class net.sf.okapi.lib.translation.BaseConnector
- leverage(ITextUnit) - Method in class net.sf.okapi.lib.translation.QueryManager
-
Leverages a text unit (segmented or not) based on the current settings.
- leverageUsingBatchQuery(ITextUnit) - Method in class net.sf.okapi.lib.translation.BaseConnector
-
Call this method inside the overriding
BaseConnector.leverage(ITextUnit)method of the derived class, if that class offers a fastBaseConnector.batchQuery(List)method.
M
- minimum(int, int, int) - Static method in class net.sf.okapi.lib.translation.TextMatcher
-
Returns the minimum value between three given values.
N
- name - Variable in class net.sf.okapi.lib.translation.ResourceItem
-
the name of this resource.
- net.sf.okapi.lib.translation - package net.sf.okapi.lib.translation
-
Interfaces and classes for accessing translation resources.
- next() - Method in class net.sf.okapi.lib.translation.BaseConnector
- next() - Method in class net.sf.okapi.lib.translation.QueryManager
-
Gets the next hit for the last query.
P
- prepareBaseTokens(String) - Method in class net.sf.okapi.lib.translation.TextMatcher
-
Creates a list of tokens from a string to use with the
TextMatcher.compareToBaseTokens(String, List, TextFragment).
Q
- query - Variable in class net.sf.okapi.lib.translation.ResourceItem
-
The query engine for this resource.
- query(String) - Method in class net.sf.okapi.lib.translation.QueryManager
-
Queries all enabled translation resources for a given plain text.
- query(TextFragment) - Method in class net.sf.okapi.lib.translation.QueryManager
-
Queries all enabled translation resources for a given text fragment.
- QueryManager - Class in net.sf.okapi.lib.translation
-
Provides a wrapper to manage and query several translation resources at the same time.
- QueryManager() - Constructor for class net.sf.okapi.lib.translation.QueryManager
-
Creates a new QueryManager object.
- QueryUtil - Class in net.sf.okapi.lib.translation
-
Collection of helper method for preparing and querying translation resources.
- QueryUtil() - Constructor for class net.sf.okapi.lib.translation.QueryUtil
R
- remove(int) - Method in class net.sf.okapi.lib.translation.QueryManager
-
Removes a given translation resource.
- removeAttribute(String) - Method in class net.sf.okapi.lib.translation.BaseConnector
- removeAttribute(String) - Method in class net.sf.okapi.lib.translation.QueryManager
-
Removes a given attribute from this manager and all translation resources in this manager.
- removeDuplicates(List<QueryResult>) - Static method in class net.sf.okapi.lib.translation.QueryUtil
-
Removes duplicates based on the Equals method of
QueryResult. - resetCounters() - Method in class net.sf.okapi.lib.translation.QueryManager
-
Resets the counters used to calculate the number of segments leveraged.
- ResourceItem - Class in net.sf.okapi.lib.translation
-
Set of fields common to all translation resources.
- ResourceItem() - Constructor for class net.sf.okapi.lib.translation.ResourceItem
- result - Variable in class net.sf.okapi.lib.translation.BaseConnector
- rewind() - Method in class net.sf.okapi.lib.translation.QueryManager
-
Resets the current result to the first one if there is one.
S
- separateCodesFromText(TextFragment) - Method in class net.sf.okapi.lib.translation.QueryUtil
-
Separate and store codes of a given text fragment.
- setAttribute(String, String) - Method in class net.sf.okapi.lib.translation.BaseConnector
- setAttribute(String, String) - Method in class net.sf.okapi.lib.translation.QueryManager
-
Sets an attribute for this manager and all translation resources in this manager.
- setEnabled(int, boolean) - Method in class net.sf.okapi.lib.translation.QueryManager
-
Enables or disables a given translation resource.
- setLanguages(LocaleId, LocaleId) - Method in class net.sf.okapi.lib.translation.BaseConnector
- setLanguages(LocaleId, LocaleId) - Method in class net.sf.okapi.lib.translation.QueryManager
-
Sets the source and target locales for this manager and for all translation resources in this manager.
- setMaximumHits(int) - Method in interface net.sf.okapi.lib.translation.ITMQuery
-
Sets the maximum number of hits to retrieve.
- setMaximumHits(int) - Method in class net.sf.okapi.lib.translation.QueryManager
-
Sets the maximum number of hits to return for this query manager and all the relevant translation resources it holds.
- setNoQueryThreshold(int) - Method in class net.sf.okapi.lib.translation.BaseConnector
- setNoQueryThreshold(int) - Method in class net.sf.okapi.lib.translation.QueryManager
-
Sets the no-query threshold for this query manager.
- setOptions(int, boolean, boolean, boolean, String, int, boolean) - Method in class net.sf.okapi.lib.translation.QueryManager
-
Sets the options for performing the leverage.
- setParameters(IParameters) - Method in class net.sf.okapi.lib.translation.BaseConnector
- setRootDirectory(String) - Method in class net.sf.okapi.lib.translation.BaseConnector
- setRootDirectory(String) - Method in class net.sf.okapi.lib.translation.QueryManager
-
Sets the root directory for this query manager and all translation resources it holds.
- setThreshold(int) - Method in interface net.sf.okapi.lib.translation.ITMQuery
-
Sets the threshold value to use for the query.
- setThreshold(int) - Method in class net.sf.okapi.lib.translation.QueryManager
-
Sets the threshold for this query manager and all the relevant translation resources it holds.
- setWeight(int) - Method in class net.sf.okapi.lib.translation.BaseConnector
- srcCode - Variable in class net.sf.okapi.lib.translation.BaseConnector
- srcLoc - Variable in class net.sf.okapi.lib.translation.BaseConnector
T
- TextMatcher - Class in net.sf.okapi.lib.translation
-
Provides a simple way to compare two lists of tokens using basic fuzzy matching algorithms.
- TextMatcher(LocaleId, LocaleId) - Constructor for class net.sf.okapi.lib.translation.TextMatcher
-
Creates a new TextMatcher object.
- toCodedHTML(List<TextFragment>) - Method in class net.sf.okapi.lib.translation.QueryUtil
-
Converts from coded texts to coded HTML.
- toCodedHTML(TextFragment) - Method in class net.sf.okapi.lib.translation.QueryUtil
-
Converts from coded text to coded HTML.
- toInternalCode(LocaleId) - Method in class net.sf.okapi.lib.translation.BaseConnector
-
Converts a locale identifier to the internal string value for a language/locale code for this connector.
- toXLIFF(TextFragment) - Method in class net.sf.okapi.lib.translation.QueryUtil
-
Converts from coded text to XLIFF.
- trgCode - Variable in class net.sf.okapi.lib.translation.BaseConnector
- trgLoc - Variable in class net.sf.okapi.lib.translation.BaseConnector
All Classes All Packages