|
|||||||||
前のクラス 次のクラス | フレームあり フレームなし | ||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Object jp.go.nict.langrid.servicecontainer.service.component.AbstractServiceExecutor jp.go.nict.langrid.servicecontainer.executor.protobufrpc.AbstractPbServiceExecutor jp.go.nict.langrid.servicecontainer.executor.protobufrpc.PbBilingualDictionaryWithLongestMatchSearchServiceExecutor
public class PbBilingualDictionaryWithLongestMatchSearchServiceExecutor
Protocol Buffers 用 外部翻訳サービス呼び出しクラス
コンストラクタの概要 | |
---|---|
PbBilingualDictionaryWithLongestMatchSearchServiceExecutor(String invocationName)
|
|
PbBilingualDictionaryWithLongestMatchSearchServiceExecutor(String invocationName,
long invocationId,
Endpoint endpoint)
|
メソッドの概要 | |
---|---|
Calendar |
getLastUpdate()
辞書データの最終更新日を返す。 |
LanguagePair[] |
getSupportedLanguagePairs()
辞書の対応言語を取得する。 |
String[] |
getSupportedMatchingMethods()
辞書ラッパーが対応している検索手法を返す。 |
Translation[] |
search(String headLang,
String targetLang,
String headWord,
String matchingMethod)
指定された検索語・検索方法で対訳辞書を検索し、対訳を返します。 |
TranslationWithPosition[] |
searchLongestMatchingTerms(String headLang,
String targetLang,
Morpheme[] morphemes)
形態素の配列を元に検索を行います。 |
クラス jp.go.nict.langrid.servicecontainer.executor.protobufrpc.AbstractPbServiceExecutor から継承されたメソッド |
---|
postprocessPb, preprocessPb |
クラス jp.go.nict.langrid.servicecontainer.service.component.AbstractServiceExecutor から継承されたメソッド |
---|
getInvocationName, postprocess, preprocess |
クラス java.lang.Object から継承されたメソッド |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
コンストラクタの詳細 |
---|
public PbBilingualDictionaryWithLongestMatchSearchServiceExecutor(String invocationName)
public PbBilingualDictionaryWithLongestMatchSearchServiceExecutor(String invocationName, long invocationId, Endpoint endpoint)
メソッドの詳細 |
---|
public TranslationWithPosition[] searchLongestMatchingTerms(String headLang, String targetLang, Morpheme[] morphemes) throws AccessLimitExceededException, InvalidParameterException, LanguagePairNotUniquelyDecidedException, NoAccessPermissionException, NoValidEndpointsException, ProcessFailedException, ServerBusyException, ServiceNotActiveException, ServiceNotFoundException, UnsupportedLanguagePairException, UnsupportedMatchingMethodException
BilingualDictionaryWithLongestMatchSearchService
の記述:
BilingualDictionaryWithLongestMatchSearchService
内の searchLongestMatchingTerms
headLang
- 対訳の元言語(RFC3066準拠)targetLang
- 対訳の対象言語(RFC3066準拠)morphemes
- 形態素の配列
AccessLimitExceededException
- アクセス制限に違反した
InvalidParameterException
- headLang,targetLang,searchMethodのいずれかがnullまたは空文字列.headLang,targetLangがRFC3066に準拠していない.searchMethodが規定されている以外の文字列
LanguagePairNotUniquelyDecidedException
- 対訳言語対候補が一意に求まらない(例:headLangもしくはtargetLangにzhを指定したときに,対応言語対にzh-Hansとzh-Hantが存在した場合)
UnsupportedLanguagePairException
- 指定された言語対はサポートされていない
UnsupportedMatchingMethodException
- 指定されたマッチング方法はサポートされていない
NoAccessPermissionException
- 呼び出しを行ったユーザに実行権限が無い
NoValidEndpointsException
- 有効なエンドポイントが無い
ProcessFailedException
- 検索処理に失敗した
ServerBusyException
- サーバが混雑していて処理が実行できない
ServiceNotActiveException
- サービスはアクティブではない
ServiceNotFoundException
- 指定されたサービスが見つからないpublic Translation[] search(String headLang, String targetLang, String headWord, String matchingMethod) throws AccessLimitExceededException, InvalidParameterException, LanguagePairNotUniquelyDecidedException, NoAccessPermissionException, NoValidEndpointsException, ProcessFailedException, ServerBusyException, ServiceNotActiveException, ServiceNotFoundException, UnsupportedLanguagePairException, UnsupportedMatchingMethodException
BilingualDictionaryService
の記述:
BilingualDictionaryService
内の search
headLang
- 対訳の元言語(RFC3066準拠)targetLang
- 対訳の対象言語(RFC3066準拠)headWord
- 対訳を検索する語matchingMethod
- マッチング方法("COMPLETE","PREFIX","SUFFIX","PARTIAL","REGEX"のいずれか)
AccessLimitExceededException
- アクセス制限に違反した
InvalidParameterException
- headLang,targetLang,searchMethodのいずれかがnullまたは空文字列.headLang,targetLangがRFC3066に準拠していない.searchMethodが規定されている以外の文字列
LanguagePairNotUniquelyDecidedException
- 対訳言語対候補が一意に求まらない(例:headLangもしくはtargetLangにzhを指定したときに,対応言語対にzh-Hansとzh-Hantが存在した場合)
UnsupportedLanguagePairException
- 指定された言語対はサポートされていない
UnsupportedMatchingMethodException
- 指定されたマッチング方法はサポートされていない
NoAccessPermissionException
- 呼び出しを行ったユーザに実行権限が無い
NoValidEndpointsException
- 有効なエンドポイントが無い
ProcessFailedException
- 検索処理に失敗した
ServerBusyException
- サーバが混雑していて処理が実行できない
ServiceNotActiveException
- サービスはアクティブではない
ServiceNotFoundException
- 指定されたサービスが見つからないpublic Calendar getLastUpdate() throws AccessLimitExceededException, NoAccessPermissionException, NoValidEndpointsException, ProcessFailedException, ServerBusyException, ServiceNotActiveException, ServiceNotFoundException
BilingualDictionaryService
の記述:
BilingualDictionaryService
内の getLastUpdate
AccessLimitExceededException
- アクセス制限に違反した
NoAccessPermissionException
- 呼び出しを行ったユーザに実行権限が無い
NoValidEndpointsException
- 有効なエンドポイントが無い
ProcessFailedException
- 検索処理に失敗した
ServerBusyException
- サーバが混雑していて処理が実行できない
ServiceNotActiveException
- サービスはアクティブではない
ServiceNotFoundException
- 指定されたサービスが見つからないpublic LanguagePair[] getSupportedLanguagePairs() throws AccessLimitExceededException, NoAccessPermissionException, NoValidEndpointsException, ProcessFailedException, ServerBusyException, ServiceNotActiveException, ServiceNotFoundException
BilingualDictionaryService
の記述:
BilingualDictionaryService
内の getSupportedLanguagePairs
AccessLimitExceededException
- アクセス制限に違反した
NoAccessPermissionException
- 呼び出しを行ったユーザに実行権限が無い
NoValidEndpointsException
- 有効なエンドポイントが無い
ProcessFailedException
- 検索処理に失敗した
ServerBusyException
- サーバが混雑していて処理が実行できない
ServiceNotActiveException
- サービスはアクティブではない
ServiceNotFoundException
- 指定されたサービスが見つからないpublic String[] getSupportedMatchingMethods() throws AccessLimitExceededException, NoAccessPermissionException, NoValidEndpointsException, ProcessFailedException, ServerBusyException, ServiceNotActiveException, ServiceNotFoundException
BilingualDictionaryService
の記述:
BilingualDictionaryService
内の getSupportedMatchingMethods
AccessLimitExceededException
- アクセス制限に違反した
NoAccessPermissionException
- 呼び出しを行ったユーザに実行権限が無い
NoValidEndpointsException
- 有効なエンドポイントが無い
ProcessFailedException
- 検索処理に失敗した
ServerBusyException
- サーバが混雑していて処理が実行できない
ServiceNotActiveException
- サービスはアクティブではない
ServiceNotFoundException
- 指定されたサービスが見つからない
|
|||||||||
前のクラス 次のクラス | フレームあり フレームなし | ||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |