jp.go.nict.langrid.wrapper.ws_1_2.workflowsupport
クラス AbstractTemporalBilingualDictionaryWithLongestMatchSearchService
java.lang.Object
jp.go.nict.langrid.servicecontainer.service.AbstractService
jp.go.nict.langrid.wrapper.ws_1_2.AbstractService
jp.go.nict.langrid.wrapper.ws_1_2.AbstractLanguageService
jp.go.nict.langrid.wrapper.ws_1_2.workflowsupport.AbstractTemporalBilingualDictionaryWithLongestMatchSearchService
- すべての実装されたインタフェース:
- TemporalBilingualDictionaryWithLongestMatchSearchSerivce
- 直系の既知のサブクラス:
- TemporalBilingualDictionaryWithLongestMatchSearch
public abstract class AbstractTemporalBilingualDictionaryWithLongestMatchSearchService
- extends AbstractLanguageService
- implements TemporalBilingualDictionaryWithLongestMatchSearchSerivce
- バージョン:
- $Revision: 6066 $
- 作成者:
- koyama, $Author: nakaguchi $
クラス jp.go.nict.langrid.wrapper.ws_1_2.AbstractService から継承されたメソッド |
acquireSemaphore, checkStartupException, convertLanguagePairs, convertLanguages, doGetLastUpdate, getCurrentServiceContext, getDoDoubleSearch, getEliminateDuplicates, getInitParameter, getInitParameterBoolean, getInitParameterInt, getInitParameterLong, getInitParameters, getInitParameterString, getInitParameterUsingTransformer, getLastUpdate, getLogListener, getMaxResults, getMaxWaitMillisForExternalProcess, getRequestMimeHeaders, getServiceContext, getWorkDirectory, getWorkFile, log, parseDateMacro, processEnd, processEnd, processLap, processStart, releaseSemaphore, setCurrentServiceContext, setDoubleSearchResults, setEliminateDuplicates, setLogListener, setMaxResults, setMaxThreads, setMaxWaitMillisForExternalProcess, setMaxWaitMillisForThread, setMeasureProcessTime, setProcessTimeWarningThreasholdMillis, setStartupException |
クラス java.lang.Object から継承されたメソッド |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractTemporalBilingualDictionaryWithLongestMatchSearchService
public AbstractTemporalBilingualDictionaryWithLongestMatchSearchService()
- コンストラクタ。
AbstractTemporalBilingualDictionaryWithLongestMatchSearchService
public AbstractTemporalBilingualDictionaryWithLongestMatchSearchService(ServiceContext context)
searchAllLongestMatchingTerms
public TranslationWithPosition[] searchAllLongestMatchingTerms(String headLang,
Morpheme[] morphemes,
Translation[] temporalDict)
throws AccessLimitExceededException,
InvalidParameterException,
NoAccessPermissionException,
NoValidEndpointsException,
ProcessFailedException,
ServerBusyException,
ServiceNotActiveException,
ServiceNotFoundException,
UnsupportedLanguageException
- インタフェース
TemporalBilingualDictionaryWithLongestMatchSearchSerivce
の記述:
- 形態素の配列から最長一致するユーザ辞書の見出し語をすべて検索し、結果を返します。
動詞を除く形態素を連結し、得られた語を検索します。
見つかった語の中から最も長いものを検索結果に追加します。
複数の検索が行われ、見出し語のことなる検索結果が複数返される可能性があります。
- 定義:
- インタフェース
TemporalBilingualDictionaryWithLongestMatchSearchSerivce
内の searchAllLongestMatchingTerms
- パラメータ:
headLang
- 対訳の元言語(RFC3066準拠.prefixのみ一致した場合は,一致した言語が1つの場合のみ呼び出し可能(例:対訳言語対にzh-Hansがあったときに,headLangにzhを指定した場合))morphemes
- 形態素の配列temporalDict
- ユーザ辞書
- 戻り値:
- 検索結果
- 例外:
AccessLimitExceededException
- アクセス制限に違反した
InvalidParameterException
- headLang,targetLang,searchMethodのいずれかがnullまたは空文字列.headLang,targetLangがRFC3066に準拠していない.searchMethodが規定されている以外の文字列
LanguagePairNotUniquelyDecidedException
- 対訳言語対候補が一意に求まらない(例:headLangもしくはtargetLangにzhを指定したときに,対応言語対にzh-Hansとzh-Hantが存在した場合)
UnsupportedLanguageException
- 指定された言語対はサポートされていない
NoAccessPermissionException
- 呼び出しを行ったユーザに実行権限が無い
NoValidEndpointsException
- 有効なエンドポイントが無い
ProcessFailedException
- 検索処理に失敗した
ServerBusyException
- サーバが混雑していて処理が実行できない
ServiceNotActiveException
- サービスはアクティブではない
ServiceNotFoundException
- 指定されたサービスが見つからない
doSearchAllLongestMatchingTerms
protected abstract Collection<TranslationWithPosition> doSearchAllLongestMatchingTerms(Language language,
Morpheme[] morphemes,
Translation[] translations)
throws InvalidParameterException,
ProcessFailedException
- 例外:
InvalidParameterException
ProcessFailedException