Code Monkey home page Code Monkey logo

practical-nlp-ja's Introduction

実践 自然言語処理


表紙


本リポジトリはオライリー・ジャパン発行書籍『実践 自然言語処理』のサポートサイトです。

サンプルコード

各章ごとにノートブックを用意しています。また、それぞれのノートブックはGoogle Colaboratoryを使いブラウザで実行できます。

ライセンス

MIT

正誤表

まだありません。誤植など間違いを見つけた方は、[email protected]までお知らせください。

practical-nlp-ja's People

Contributors

hironsan avatar miyagawa-orj avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

practical-nlp-ja's Issues

appendix/ner_demo fails due to the changed path of '*.ne.conllu'

日本語で失礼します。

appendix/ner_demo サンプルがそのままでは動きません。
これは、megagonlabs/UD_Japanese-GSD 側の変更 "move *.ne.conllu to spacy/" のおかげで、project.ymlが想定するデータのパスが適切でなくなったからです。

泥縄ですが以下のように対処してみています。

  • mkdir ner_demo/corpus/spacy
  • project.yml のうち 2か所 を修正
*** practical-nlp-ja/appendix/ner_demo/project.yml      2022-10-07 16:50:37.995070000 +0900
--- ./project.yml       2022-10-07 16:41:36.203605000 +0900
***************
*** 5,13 ****
  vars:
    name: "ner_demo"
    lang: "ja"
!   train: "ja_gsd-ud-train.ne"
!   dev: "ja_gsd-ud-dev.ne"
!   test: "ja_gsd-ud-test.ne"
    version: "0.0.1"
    # Set your GPU ID, -1 is CPU
    gpu_id: -1
--- 5,13 ----
  vars:
    name: "ner_demo"
    lang: "ja"
!   train: "spacy/ja_gsd-ud-train.ne"
!   dev: "spacy/ja_gsd-ud-dev.ne"
!   test: "spacy/ja_gsd-ud-test.ne"
    version: "0.0.1"
    # Set your GPU ID, -1 is CPU
    gpu_id: -1
***************
*** 53,65 ****
    - name: "convert"
      help: "データセットをspaCyのバイナリ形式へ変換"
      script:
!       - "python -m spacy convert assets/${vars.train}.conllu corpus
                  --converter conllu
                  --n-sents 10"
!       - "python -m spacy convert assets/${vars.dev}.conllu corpus
                  --converter conllu
                  --n-sents 10"
!       - "python -m spacy convert assets/${vars.test}.conllu corpus
                  --converter conllu
                  --n-sents 10"
      deps:
--- 53,65 ----
    - name: "convert"
      help: "データセットをspaCyのバイナリ形式へ変換"
      script:
!       - "python -m spacy convert assets/${vars.train}.conllu corpus/spacy
                  --converter conllu
                  --n-sents 10"
!       - "python -m spacy convert assets/${vars.dev}.conllu corpus/spacy
                  --converter conllu
                  --n-sents 10"
!       - "python -m spacy convert assets/${vars.test}.conllu corpus/spacy
                  --converter conllu
                  --n-sents 10"
      deps:

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.