jp.go.nict.langrid.client.ws_1_2.protobuf.impl
クラス BilingualDictionaryWithLongestMatchSearchClientImpl

java.lang.Object
  上位を拡張 jp.go.nict.langrid.client.ws_1_2.protobuf.impl.ServiceClientImpl
      上位を拡張 jp.go.nict.langrid.client.ws_1_2.protobuf.impl.BilingualDictionaryWithLongestMatchSearchClientImpl
すべての実装されたインタフェース:
BilingualDictionaryClient, BilingualDictionaryWithLongestMatchSearchClient, ServiceClient

public class BilingualDictionaryWithLongestMatchSearchClientImpl
extends ServiceClientImpl
implements BilingualDictionaryWithLongestMatchSearchClient


入れ子のクラスの概要
 
クラス jp.go.nict.langrid.client.ws_1_2.protobuf.impl.ServiceClientImpl から継承された入れ子のクラス/インタフェース
ServiceClientImpl.ServiceExecutor<T,U>
 
コンストラクタの概要
BilingualDictionaryWithLongestMatchSearchClientImpl(URL url)
          Constructor.
 
メソッドの概要
 Calendar getLastUpdate()
          辞書データの最終更新日を返す。
 LanguagePair[] getSupportedLanguagePairs()
          辞書の対応言語を取得する。
 String[] getSupportedMatchingMethods()
          辞書ラッパーが対応している検索手法を返す。
 Translation[] search(Language headLang, Language targetLang, String headWord, MatchingMethod matchingMethod)
          指定された検索語・検索方法で対訳辞書を検索し、対訳を返します。
 TranslationWithPosition[] searchLongestMatchingTerms(Language headLang, Language targetLang, Morpheme[] morphemes)
          形態素の配列を元に検索を行います。
 
クラス jp.go.nict.langrid.client.ws_1_2.protobuf.impl.ServiceClientImpl から継承されたメソッド
addHeaders, convert, createChannel, execute, getHttpHeaders, getLastCallTree, getLastCopyrightInfo, getLastLicenseInfo, getLastName, getPassword, getRequestHeaders, getTreeBindings, getUrl, getUserId, setPassword, setUserId
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
インタフェース jp.go.nict.langrid.client.ws_1_2.ServiceClient から継承されたメソッド
getHttpHeaders, getLastCallTree, getLastCopyrightInfo, getLastLicenseInfo, getLastName, getTreeBindings, setPassword, setUserId
 

コンストラクタの詳細

BilingualDictionaryWithLongestMatchSearchClientImpl

public BilingualDictionaryWithLongestMatchSearchClientImpl(URL url)
Constructor.

パラメータ:
url - The invocation url of the service.
メソッドの詳細

search

public Translation[] search(Language headLang,
                            Language targetLang,
                            String headWord,
                            MatchingMethod matchingMethod)
                     throws LangridException
インタフェース BilingualDictionaryClient の記述:
指定された検索語・検索方法で対訳辞書を検索し、対訳を返します。

定義:
インタフェース BilingualDictionaryClient 内の search
パラメータ:
headLang - 対訳の元言語(RFC3066準拠.prefixのみ一致した場合は,一致した言語が1つの場合のみ呼び出し可能(例:対訳言語対にzh-Hansがあったときに,headLangにzhを指定した場合))
targetLang - 対訳の対象言語(RFC3066準拠.prefixのみ一致した場合は,一致した言語が1つの場合のみ呼び出し可能(例:対訳言語対にzh-Hansがあったときに,targetLangにzhを指定した場合))
headWord - 対訳を検索する語
matchingMethod - 検索方法("COMPLETE","PREFIX","SUFFIX","PARTIAL","REGEX"のいずれか)
戻り値:
検索結果
例外:
LangridException - サービスの呼び出しに失敗した

searchLongestMatchingTerms

public TranslationWithPosition[] searchLongestMatchingTerms(Language headLang,
                                                            Language targetLang,
                                                            Morpheme[] morphemes)
                                                     throws LangridException
インタフェース BilingualDictionaryWithLongestMatchSearchClient の記述:
形態素の配列を元に検索を行います。 動詞を除く形態素を連結し、得られた語を検索します。 見つかった語の中から最も長いものを検索結果に追加します。 複数の検索が行われ、見出し語のことなる検索結果が複数返される可能性があります。

定義:
インタフェース BilingualDictionaryWithLongestMatchSearchClient 内の searchLongestMatchingTerms
パラメータ:
headLang - 検索する見出し言語
targetLang - 対訳言語
morphemes - 形態素
戻り値:
結果の配列
例外:
LangridException - 処理に失敗した

getSupportedLanguagePairs

public LanguagePair[] getSupportedLanguagePairs()
                                         throws LangridException
インタフェース BilingualDictionaryClient の記述:
辞書の対応言語を取得する。

定義:
インタフェース BilingualDictionaryClient 内の getSupportedLanguagePairs
戻り値:
言語の配列
例外:
LangridException - サービスの呼び出しに失敗した

getSupportedMatchingMethods

public String[] getSupportedMatchingMethods()
                                     throws LangridException
インタフェース BilingualDictionaryClient の記述:
辞書ラッパーが対応している検索手法を返す。

定義:
インタフェース BilingualDictionaryClient 内の getSupportedMatchingMethods
戻り値:
対応している検索方法の配列
例外:
LangridException - サービスの呼び出しに失敗した

getLastUpdate

public Calendar getLastUpdate()
                       throws LangridException
インタフェース BilingualDictionaryClient の記述:
辞書データの最終更新日を返す。

定義:
インタフェース BilingualDictionaryClient 内の getLastUpdate
戻り値:
最終更新日
例外:
LangridException - サービスの呼び出しに失敗した