パッケージ nlp4j.impl
クラス DefaultKeyword
- java.lang.Object
-
- nlp4j.impl.DefaultKeyword
-
- すべての実装されたインタフェース:
Serializable
,Cloneable
,Keyword
- 直系の既知のサブクラス:
DefaultKeywordWithDependency
public class DefaultKeyword extends Object implements Keyword, Cloneable
ドキュメントのキーワードとなるクラスです。
Keyword class of a document.- バージョン:
- 1.0
- 作成者:
- Hiroki Oya
- 関連項目:
- 直列化された形式
-
-
フィールドの概要
フィールド 修飾子とタイプ フィールド 説明 protected int
begin
protected double
correlation
protected long
count
protected int
end
protected String
facet
protected Keyword
hitKeyword
protected String
lex
protected String
namespace
protected String
reading
protected int
sequence
protected String
str
protected String
upos
-
コンストラクタの概要
コンストラクタ コンストラクタ 説明 DefaultKeyword()
Default constructorDefaultKeyword(int begin, int end, String facet, String lex, String str)
DefaultKeyword(String namespace, int begin, int end, String facet, String lex, String str)
DefaultKeyword(String facet, String lex)
-
メソッドの概要
すべてのメソッド インスタンス・メソッド concreteメソッド 修飾子とタイプ メソッド 説明 void
addBeginEnd(int n)
Shift begin, endprotected DefaultKeyword
clone()
boolean
equals(Object obj)
String
get(String attribute)
キーワードの属性値を返します。int
getBegin()
キーワードの開始位置を返します。double
getCorrelation()
キーワードの共起性を返します。long
getCount()
キーワードのカウントを返します。int
getEnd()
キーワードの終了位置を返します。String
getFacet()
ファセットを返します。boolean
getFlag()
フラグを返します。String
getLex()
キーワードの正規形を返します。String
getNamespance()
キーワードの名前空間を取得します。String
getReading()
キーワードの「読み」を返します。int
getSequence()
String
getStr()
キーワードの表出文字を返します。String
getUPos()
Universal POSを返します。int
hashCode()
boolean
match(Keyword rule)
Return match result of Keywordvoid
setBegin(int begin)
キーワードの開始位置をセットします。void
setCorrelation(double d)
キーワードの共起性をセットします。void
setCount(long count)
キーワードのカウントをセットします。void
setEnd(int end)
キーワードの終了位置をセットします。void
setFacet(String facet)
キーワードのファセットをセットします。void
setFlag(boolean b)
フラグをセットします。void
setLex(String lex)
キーワードの正規形をセットします。void
setNamespace(String namespace)
キーワードの名前空間をセットします。void
setReading(String reading)
キーワードの読みをセットします。void
setSequence(int sequence)
連番を返します。void
setStr(String str)
キーワードの表出文字をセットします。void
setUPos(String upos)
Universal POSをセットします。String
toString()
String
toStringDetail()
-
-
-
フィールドの詳細
-
begin
protected int begin
-
correlation
protected double correlation
-
count
protected long count
-
end
protected int end
-
facet
protected String facet
-
lex
protected String lex
-
namespace
protected String namespace
-
reading
protected String reading
-
sequence
protected int sequence
-
str
protected String str
-
upos
protected String upos
-
hitKeyword
protected Keyword hitKeyword
-
-
コンストラクタの詳細
-
DefaultKeyword
public DefaultKeyword()
Default constructor- 導入されたバージョン:
- 1.2.1.0
-
DefaultKeyword
public DefaultKeyword(int begin, int end, String facet, String lex, String str)
- パラメータ:
begin
- 開始位置end
- 終了位置facet
- ファセットlex
- 正規形str
- 表出文字
-
DefaultKeyword
public DefaultKeyword(String facet, String lex)
- パラメータ:
facet
- ファセットlex
- 正規形- 導入されたバージョン:
- 1.3.2
-
-
メソッドの詳細
-
clone
protected DefaultKeyword clone()
-
equals
public boolean equals(Object obj)
-
get
public String get(String attribute)
インタフェースからコピーされた説明:Keyword
キーワードの属性値を返します。
Return value for an attribute
-
getBegin
public int getBegin()
インタフェースからコピーされた説明:Keyword
キーワードの開始位置を返します。
Return begin of keyword.
-
getCorrelation
public double getCorrelation()
インタフェースからコピーされた説明:Keyword
キーワードの共起性を返します。
Return keyword correlation.- 定義:
getCorrelation
インタフェース内Keyword
- 戻り値:
- correlation 共起性
-
getCount
public long getCount()
インタフェースからコピーされた説明:Keyword
キーワードのカウントを返します。
Return keyword count.
-
getEnd
public int getEnd()
インタフェースからコピーされた説明:Keyword
キーワードの終了位置を返します。
Return end of keyword.
-
getLex
public String getLex()
インタフェースからコピーされた説明:Keyword
キーワードの正規形を返します。正規形は見出し語とも呼ばれます。
Return normalized string.
-
getNamespance
public String getNamespance()
インタフェースからコピーされた説明:Keyword
キーワードの名前空間を取得します。
Get namespace of keyword.- 定義:
getNamespance
インタフェース内Keyword
-
getReading
public String getReading()
インタフェースからコピーされた説明:Keyword
キーワードの「読み」を返します。
Return reading of keyword.- 定義:
getReading
インタフェース内Keyword
- 戻り値:
- reading 読み
-
getSequence
public int getSequence()
- 戻り値:
- 連番
-
getUPos
public String getUPos()
インタフェースからコピーされた説明:Keyword
Universal POSを返します。
Return Universal POS.
-
setBegin
public void setBegin(int begin)
インタフェースからコピーされた説明:Keyword
キーワードの開始位置をセットします。
Set begin of keyword.
-
setCorrelation
public void setCorrelation(double d)
インタフェースからコピーされた説明:Keyword
キーワードの共起性をセットします。
Set correlation of keyword.- 定義:
setCorrelation
インタフェース内Keyword
- パラメータ:
d
- correlation
-
addBeginEnd
public void addBeginEnd(int n)
インタフェースからコピーされた説明:Keyword
Shift begin, end- 定義:
addBeginEnd
インタフェース内Keyword
-
setCount
public void setCount(long count)
インタフェースからコピーされた説明:Keyword
キーワードのカウントをセットします。
Set count of keyword.
-
setEnd
public void setEnd(int end)
インタフェースからコピーされた説明:Keyword
キーワードの終了位置をセットします。
Set end of keyword.
-
setFacet
public void setFacet(String facet)
インタフェースからコピーされた説明:Keyword
キーワードのファセットをセットします。
Set facet of keyword.
-
setFlag
public void setFlag(boolean b)
フラグをセットします。
-
setLex
public void setLex(String lex)
インタフェースからコピーされた説明:Keyword
キーワードの正規形をセットします。正規形は見出し語とも呼ばれます。
Set normalized string of keyword.
-
setNamespace
public void setNamespace(String namespace)
インタフェースからコピーされた説明:Keyword
キーワードの名前空間をセットします。
Set namespace of keyword.- 定義:
setNamespace
インタフェース内Keyword
-
setReading
public void setReading(String reading)
インタフェースからコピーされた説明:Keyword
キーワードの読みをセットします。
Set reading of keyword.- 定義:
setReading
インタフェース内Keyword
- パラメータ:
reading
- 読み
-
setSequence
public void setSequence(int sequence)
連番を返します。- パラメータ:
sequence
- 連番
-
setStr
public void setStr(String str)
インタフェースからコピーされた説明:Keyword
キーワードの表出文字をセットします。
Set string of keyword.
-
setUPos
public void setUPos(String upos)
インタフェースからコピーされた説明:Keyword
Universal POSをセットします。
Set Universal POS.
-
toStringDetail
public String toStringDetail()
- 戻り値:
- キーワードの詳細情報文字列
- 導入されたバージョン:
- 1.3
-
-