|
|||||||||
前のクラス 次のクラス | フレームあり フレームなし | ||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
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.AbstractLanguagePairService jp.go.nict.langrid.wrapper.ws_1_2.paralleltext.AbstractParallelTextWithEmbeddedMetadataService
public abstract class AbstractParallelTextWithEmbeddedMetadataService
内部メタデータ付き用例対訳サービスの基底クラスです.
フィールドの概要 |
---|
クラス jp.go.nict.langrid.wrapper.ws_1_2.AbstractService から継承されたフィールド |
---|
ALL_MATCHINGMETHODS, EMPTY_LANGUAGEPAIRS, EMPTY_LANGUAGEPATHS, EMPTY_LANGUAGES, MINIMUM_MATCHINGMETHODS |
コンストラクタの概要 | |
---|---|
AbstractParallelTextWithEmbeddedMetadataService()
コンストラクタ。 |
|
AbstractParallelTextWithEmbeddedMetadataService(Collection<LanguagePair> supportedPairs)
コンストラクタ。 |
|
AbstractParallelTextWithEmbeddedMetadataService(ServiceContext serviceContext,
Collection<LanguagePair> supportedPairs)
コンストラクタ。 |
メソッドの概要 | |
---|---|
protected abstract Collection<ParallelTextWithMetadata> |
doSearchParallelTextsByMetadata(Language sourceLang,
Language targetLang,
String[] metadata,
String text,
MatchingMethod matchingMethod)
メタデータを考慮した検索を行う。 |
protected abstract String[] |
doSearchSupportedMetadata(String query,
MatchingMethod matchingMethod)
対応するメタデータを検索する。 |
ParallelTextWithMetadata[] |
searchParallelTextsByMetadata(String sourceLang,
String targetLang,
String[] metadata,
String text,
String matchingMethod)
指定されたメタデータが付与された用例の中から、指定された検索語、マッチング方法で用例対訳の検索を行う。 |
String[] |
searchSupportedMetadata(String query,
String matchingMethod)
言語資源が対応しているメタデータの一覧を検索する |
protected void |
setSupportedMatchingMethods(Set<MatchingMethod> supportedMatchingMethods)
対応する検索方法を設定する。 |
クラス jp.go.nict.langrid.wrapper.ws_1_2.AbstractLanguagePairService から継承されたメソッド |
---|
getSupportedLanguagePairCollection, getSupportedLanguagePairs, setSupportedLanguagePairs |
クラス jp.go.nict.langrid.servicecontainer.service.AbstractService から継承されたメソッド |
---|
getComponentServiceFactory, setComponentServiceFactory |
クラス java.lang.Object から継承されたメソッド |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
コンストラクタの詳細 |
---|
public AbstractParallelTextWithEmbeddedMetadataService()
public AbstractParallelTextWithEmbeddedMetadataService(Collection<LanguagePair> supportedPairs)
supportedPairs
- 対応する言語対の集合public AbstractParallelTextWithEmbeddedMetadataService(ServiceContext serviceContext, Collection<LanguagePair> supportedPairs)
serviceContext
- サービスコンテキストsupportedPairs
- 対応する言語対メソッドの詳細 |
---|
public ParallelTextWithMetadata[] searchParallelTextsByMetadata(String sourceLang, String targetLang, String[] metadata, String text, String matchingMethod) throws AccessLimitExceededException, InvalidParameterException, LanguagePairNotUniquelyDecidedException, NoAccessPermissionException, NoValidEndpointsException, ProcessFailedException, ServerBusyException, ServiceNotActiveException, ServiceNotFoundException, UnsupportedLanguagePairException
ParallelTextWithEmbeddedMetadataService
の記述:
ParallelTextWithEmbeddedMetadataService
内の searchParallelTextsByMetadata
sourceLang
- 元言語。RFC3066準拠targetLang
- 対訳を探す言語。RFC3066準拠metadata
- 検索対象を限定するためのメタデータtext
- 対訳を探す文章matchingMethod
- 検索方法
AccessLimitExceededException
- アクセス制限に違反した
InvalidParameterException
- 不正なパラメータが渡された
LanguagePairNotUniquelyDecidedException
- 複数の言語対候補が見つかった
UnsupportedLanguagePairException
- 指定された言語対はサポートされていない
NoAccessPermissionException
- 呼び出しを行ったユーザに実行権限が無い
NoValidEndpointsException
- 有効なエンドポイントが無い
ProcessFailedException
- 検索処理に失敗した
ServerBusyException
- サーバが混雑していて処理が実行できない
ServiceNotActiveException
- サービスはアクティブではない
ServiceNotFoundException
- 指定されたサービスが見つからないpublic String[] searchSupportedMetadata(String query, String matchingMethod) throws AccessLimitExceededException, InvalidParameterException, LanguagePairNotUniquelyDecidedException, NoAccessPermissionException, NoValidEndpointsException, ProcessFailedException, ServerBusyException, ServiceNotActiveException, ServiceNotFoundException, UnsupportedLanguagePairException
ParallelTextWithEmbeddedMetadataService
の記述:
ParallelTextWithEmbeddedMetadataService
内の searchSupportedMetadata
query
- メタデータの検索クエリmatchingMethod
- 検索方法
AccessLimitExceededException
- アクセス制限に違反した
InvalidParameterException
- 不正なパラメータが渡された
LanguagePairNotUniquelyDecidedException
- 複数の言語対候補が見つかった
UnsupportedLanguagePairException
- 指定された言語対はサポートされていない
NoAccessPermissionException
- 呼び出しを行ったユーザに実行権限が無い
NoValidEndpointsException
- 有効なエンドポイントが無い
ProcessFailedException
- 検索処理に失敗した
ServerBusyException
- サーバが混雑していて処理が実行できない
ServiceNotActiveException
- サービスはアクティブではない
ServiceNotFoundException
- 指定されたサービスが見つからないprotected abstract Collection<ParallelTextWithMetadata> doSearchParallelTextsByMetadata(Language sourceLang, Language targetLang, String[] metadata, String text, MatchingMethod matchingMethod) throws InvalidParameterException, ProcessFailedException
sourceLang
- 元言語targetLang
- 対象言語metadata
- メタデータtext
- 検索する文章matchingMethod
- マッチング方法
InvalidParameterException
- 不正なパラメータが渡された
ProcessFailedException
- 処理に失敗したprotected abstract String[] doSearchSupportedMetadata(String query, MatchingMethod matchingMethod) throws InvalidParameterException, ProcessFailedException
query
- クエリmatchingMethod
- マッチング方法
InvalidParameterException
- 不正なパラメータが渡された
ProcessFailedException
- 処理に失敗したprotected void setSupportedMatchingMethods(Set<MatchingMethod> supportedMatchingMethods)
supportedMatchingMethods
- 対応する検索方法の集合
|
|||||||||
前のクラス 次のクラス | フレームあり フレームなし | ||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |