パッケージ nlp4j.yhoo_jp

クラス YJpDaServiceV2

  • すべての実装されたインタフェース:
    nlp4j.NlpService

    public class YJpDaServiceV2
    extends Object
    implements nlp4j.NlpService
    Yahoo! Japan dependency analysis 日本語係り受け解析
    NLP Service of Yahoo! Japan dependency analysis.
     https://developer.yahoo.co.jp/webapi/jlp/da/v1/parse.html
     
    導入されたバージョン:
    1.0
    バージョン:
    2.0
    作成者:
    Hiroki Oya
    • コンストラクタの詳細

      • YJpDaServiceV2

        public YJpDaServiceV2()
        Yahoo! Japan dependency analysis 日本語係り受け解析
    • メソッドの詳細

      • process

        public nlp4j.NlpServiceResponse process​(String text)
                                         throws IOException
        パラメータ:
        text - 自然言語文字列(ヤフー構文解析の仕様は単一文だが、句点区切りの複数文も可とする)
        戻り値:
        自然言語処理の結果
        例外:
        IOException - 例外発生時にスローされる
      • getKeywords

        public ArrayList<nlp4j.KeywordWithDependency> getKeywords​(String text)
                                                           throws IOException
        Get response from dependency analysis service 日本語係り受け解析の結果を取得する
        パラメータ:
        text - 日本語の自然文文字列(単一の文である必要がある)
        戻り値:
        日本語係り受け解析の結果
        例外:
        IOException - IOで発生した例外