パッケージ nlp4j.util
クラス KeywordUtil
- java.lang.Object
-
- nlp4j.util.KeywordUtil
-
public class KeywordUtil extends Object
- 作成者:
- Hiroki Oya
-
-
ネストされたクラスの概要
ネストされたクラス 修飾子とタイプ クラス 説明 static class
KeywordUtil.Builder<T extends Keyword>
-
コンストラクタの概要
コンストラクタ コンストラクタ 説明 KeywordUtil()
-
メソッドの概要
すべてのメソッド staticメソッド concreteメソッド 修飾子とタイプ メソッド 説明 static List<KeywordWithDependency>
fromXml(File xmlFile)
Parse Keywords from XML filestatic List<KeywordWithDependency>
fromXml(InputStream xmlIs)
Parse Keywords from XML filestatic <T extends Keyword>
List<T>fromXml(String xml, Class<T> classofT)
TODO: implement Methodstatic List<Keyword>
toKeywordList(KeywordWithDependency kw)
Convert KeywordWithDependency to List of Keywordstatic String
toLexString(List<Keyword> kwds)
static String
toXml(KeywordWithDependency kwd)
-
-
-
メソッドの詳細
-
toXml
public static String toXml(KeywordWithDependency kwd)
- パラメータ:
kwd
- to be converted to XML- 戻り値:
- xml
-
fromXml
public static List<KeywordWithDependency> fromXml(File xmlFile) throws IOException
Parse Keywords from XML file- パラメータ:
xmlFile
- XML File- 戻り値:
- Parsed Keywords
- 例外:
IOException
- on ERROR
-
fromXml
public static List<KeywordWithDependency> fromXml(InputStream xmlIs) throws IOException
Parse Keywords from XML file- パラメータ:
xmlIs
- InputStream of XML File- 戻り値:
- Parsed Keywords
- 例外:
IOException
- on ERROR
-
fromXml
public static <T extends Keyword> List<T> fromXml(String xml, Class<T> classofT)
TODO: implement Method- 型パラメータ:
T
-- パラメータ:
xml
-classofT
-- 戻り値:
-
toKeywordList
public static List<Keyword> toKeywordList(KeywordWithDependency kw)
Convert KeywordWithDependency to List of Keyword- パラメータ:
kw
- to be Listed- 戻り値:
- List of keyword
-
-