インタフェースの使用
nlp4j.DocumentAnnotator
-
DocumentAnnotatorを使用しているパッケージ パッケージ 説明 nlp4j NLP4J のコアパッケージ
package for data classnlp4j.annotator NLP4J のAnnotatorパッケージ
package for Annotatornlp4j.impl 実装クラスのパッケージです。nlp4j.pattern Package for Keyword Pattern Matchingnlp4j.util ユーティリティクラスのパッケージです。 -
-
nlp4jでのDocumentAnnotatorの使用
nlp4jでのDocumentAnnotatorのサブインタフェース 修飾子とタイプ インタフェース 説明 interface
DocumentAnnotatorPipeline
ドキュメントアノテーターのパイプライン処理。interface
FieldAnnotator
フィールドを処理対象とするAnnotatorinterface
KeywordAnnotator
キーワードを処理対象とするAnnotatorDocumentAnnotatorを実装しているnlp4jのクラス 修飾子とタイプ クラス 説明 class
AbstractDocumentAnnotator
ドキュメントアノテーターの抽象クラス。DocumentAnnotator型のパラメータを持つnlp4jのメソッド 修飾子とタイプ メソッド 説明 void
DocumentAnnotatorPipeline. add(DocumentAnnotator annotator)
アノテーターを追加します。 -
nlp4j.annotatorでのDocumentAnnotatorの使用
DocumentAnnotatorを実装しているnlp4j.annotatorのクラス 修飾子とタイプ クラス 説明 class
AttributeCopyAnnotator
属性をコピーする
プロパティ
from コピー元
to コピー先class
AttributeFilterAnnotator
class
AttributeNameConverter
属性名を変換する
プロパティ
mapping "変換前1->変換後1,変換前2->変換後2"class
AttributeRemoveAnnotator
属性を削除する
プロパティ
target 処理対象class
AttributeReplaceAllAnnotator
属性を置換する
プロパティ
target 処理対象フィールド
regex 置換前文字列の正規表現
replacement 置換後の文字列class
AttributeTypeConverter
属性のタイプを変換する
プロパティ
mapping "field_name->Type,field_name->Type,field_name->Type"
Example
mapping date->Date:yyyyMMdd,field_int1->Integer,field_int2->Integerclass
CompoundAnnotator
複合名詞のアノテーションを処理する。class
DateAttributeConvertAnnotator
文字列形式の日付を java.util.Date に変換する
プロパティ
target: 対象のフィールド
format: SimpleDateFormat形式class
DateDiffAnnotator
日付の差分を計算して追加する
プロパティ
target1 日付1(過去)のフィールド
target2 日付2(未来)のフィールド
target 日付2 - 日付1 をセットするフィールドclass
DebugAnnotator
class
EmojiAnnotator
class
EmptyAnnotator
class
KeywordFacetFilteringAnnotator
キーワードをファセットでフィルタリングする
プロパティ
filter カンマ区切りの複数ファセットclass
KeywordFacetMappingAnnotator
ファセット名を変換する
reference: Stanford CoreNLP POSタグまとめ https://qiita.com/syunyo/items/2c1ce1d765f46a5c1d72class
KeywordFixAnnotator
正規形がアスタリスクになっているのを修正するclass
KeywordSequencePatternAnnotator
語の並びに対してパターンマッチを適用する
Pattern Annotator for Keyword Sequence (語の並び)class
LexTextAnnotator
属性をコピーする
プロパティ
from コピー元
to コピー先class
Nokku34Annotator
「名詞の名詞」を「word_nn_no_nn」キーワードとして抽出します。class
NumeralAnnotator
Annotator for Numeral (数詞)
名詞のファセットキーワードのうち、数字のみのキーワードのファセットを数詞とする
例:
{lex:"103",facet:"名詞"}→{lex:"103",facet:"数詞"}class
ParseIntAnnotator
指定したフィールドを整数に変換するclass
ValueNormalizeAnnotator
Normailze document value with Unicode NFKCclass
WakachiAnnotator
日本語を分かち書きにするアノテーター
事前にキーワードをセットしておくこと -
nlp4j.implでのDocumentAnnotatorの使用
DocumentAnnotatorを実装しているnlp4j.implのクラス 修飾子とタイプ クラス 説明 class
DefaultDocumentAnnotator
自然言語データに対して情報を付加するドキュメントアノテーターです。class
DefaultDocumentAnnotatorPipeline
ドキュメントに対してアノテーター処理を連続的に処理するパイプラインのクラスです。class
DefaultDocumentAnnotatorPipelineRunnable
Runnable 対応版DocumentAnnotator型のパラメータを持つnlp4j.implのメソッド 修飾子とタイプ メソッド 説明 void
DefaultDocumentAnnotatorPipeline. add(DocumentAnnotator annotator)
-
nlp4j.patternでのDocumentAnnotatorの使用
DocumentAnnotatorを実装しているnlp4j.patternのクラス 修飾子とタイプ クラス 説明 class
StandardPatternAnnotatorJa
created_at: 2022-05-12class
UserPatternAnnotator
created_at 2021-05-05 -
nlp4j.utilでのDocumentAnnotatorの使用
DocumentAnnotator型のパラメータを持つnlp4j.utilのコンストラクタ コンストラクタ 説明 NlpCLI(DocumentAnnotator ann)
-