パッケージ nlp4j.annotator
クラス KeywordSequencePatternAnnotator
- java.lang.Object
-
- nlp4j.AbstractDocumentAnnotator
-
- nlp4j.annotator.KeywordSequencePatternAnnotator
-
- すべての実装されたインタフェース:
DocumentAnnotator
,KeywordAnnotator
public class KeywordSequencePatternAnnotator extends AbstractDocumentAnnotator implements DocumentAnnotator, KeywordAnnotator
語の並びに対してパターンマッチを適用する
Pattern Annotator for Keyword Sequence (語の並び)- 導入されたバージョン:
- 1.2
- 作成者:
- Hiroki Oya
-
-
フィールドの概要
-
クラスから継承されたフィールド nlp4j.AbstractDocumentAnnotator
prop, targets
-
-
コンストラクタの概要
コンストラクタ コンストラクタ 説明 KeywordSequencePatternAnnotator()
-
メソッドの概要
すべてのメソッド インスタンス・メソッド concreteメソッド 修飾子とタイプ メソッド 説明 void
annotate(Document doc)
ドキュメントにアノテーションを付加します。boolean
match(Keyword kwd, com.google.gson.JsonObject jsonObj)
Match
正規表現に対応(1.3)-
クラスから継承されたメソッド nlp4j.AbstractDocumentAnnotator
annotate, setProperties, setProperty
-
クラスから継承されたメソッド java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
インタフェースから継承されたメソッド nlp4j.DocumentAnnotator
annotate, setProperties, setProperty
-
-
-
-
メソッドの詳細
-
annotate
public void annotate(Document doc) throws Exception
インタフェースからコピーされた説明:DocumentAnnotator
ドキュメントにアノテーションを付加します。
Add an annotation to a document.- 定義:
annotate
インタフェース内DocumentAnnotator
- パラメータ:
doc
- ドキュメント- 例外:
Exception
- 例外発生時
-
match
public boolean match(Keyword kwd, com.google.gson.JsonObject jsonObj)
Match
正規表現に対応(1.3)- パラメータ:
kwd
- キーワードjsonObj
- JSONで指定した値- 戻り値:
- true if matched
-
-