パッケージ nlp4j.impl
クラス DefaultDocumentAnnotatorPipeline
- java.lang.Object
-
- nlp4j.AbstractDocumentAnnotator
-
- nlp4j.impl.DefaultDocumentAnnotatorPipeline
-
- すべての実装されたインタフェース:
DocumentAnnotator
,DocumentAnnotatorPipeline
- 直系の既知のサブクラス:
DefaultDocumentAnnotatorPipelineRunnable
public class DefaultDocumentAnnotatorPipeline extends AbstractDocumentAnnotator implements DocumentAnnotatorPipeline
ドキュメントに対してアノテーター処理を連続的に処理するパイプラインのクラスです。
Document Annotator pipeline class.- 導入されたバージョン:
- 1.0
- 作成者:
- Hiroki Oya
-
-
フィールドの概要
-
クラスから継承されたフィールド nlp4j.AbstractDocumentAnnotator
prop, targets
-
-
コンストラクタの概要
コンストラクタ コンストラクタ 説明 DefaultDocumentAnnotatorPipeline()
-
メソッドの概要
すべてのメソッド インスタンス・メソッド concreteメソッド 修飾子とタイプ メソッド 説明 void
add(DocumentAnnotator annotator)
アノテーターを追加します。void
annotate(List<Document> docs)
複数のドキュメントにアノテーションを付加します。void
annotate(Document doc)
ドキュメントにアノテーションを付加します。int
annotatorsSize()
int
getAnnotatorIndexInProcess()
int
getDocIndexInProcess()
-
クラスから継承されたメソッド nlp4j.AbstractDocumentAnnotator
setProperties, setProperty
-
クラスから継承されたメソッド java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
インタフェースから継承されたメソッド nlp4j.DocumentAnnotator
setProperties, setProperty
-
-
-
-
メソッドの詳細
-
getAnnotatorIndexInProcess
public int getAnnotatorIndexInProcess()
- 戻り値:
- 処理中AnnotatorのIndex
- 導入されたバージョン:
- 1.3
-
getDocIndexInProcess
public int getDocIndexInProcess()
- 戻り値:
- 処理中DocumentのIndex
- 導入されたバージョン:
- 1.3
-
add
public void add(DocumentAnnotator annotator)
インタフェースからコピーされた説明:DocumentAnnotatorPipeline
アノテーターを追加します。
Add an annotator.- 定義:
add
インタフェース内DocumentAnnotatorPipeline
- パラメータ:
annotator
- アノテーター
-
annotate
public void annotate(Document doc) throws Exception
インタフェースからコピーされた説明:DocumentAnnotator
ドキュメントにアノテーションを付加します。
Add an annotation to a document.- 定義:
annotate
インタフェース内DocumentAnnotator
- パラメータ:
doc
- ドキュメント- 例外:
Exception
- 例外発生時
-
annotate
public void annotate(List<Document> docs) throws Exception
インタフェースからコピーされた説明:DocumentAnnotator
複数のドキュメントにアノテーションを付加します。
Add an annotation to documents.- 定義:
annotate
インタフェース内DocumentAnnotator
- オーバーライド:
annotate
クラス内AbstractDocumentAnnotator
- パラメータ:
docs
- ドキュメント- 例外:
Exception
- 例外発生時
-
annotatorsSize
public int annotatorsSize()
- 戻り値:
- 登録されているアノテーターの数
- 導入されたバージョン:
- 1.3
-
-