Giter Site home page Giter Site logo

jawikify's People

Contributors

conditional avatar

Stargazers

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

Watchers

 avatar  avatar  avatar

jawikify's Issues

"kb_filename"に存在しないファイルパスが指定されている

kb_filename = params['k'] || 'work/kb.kch'

概要

src/supervised_linker.rb の89行目, kb_filename に存在しないファイルパス work/kb.kch が指定されています.実行ファイル jawikify では supervised_linker.rbk オプションを指定していないため,実行時に work/kb.kch を参照するようですが,参照先が存在していないため,以下のようなエラーを観測しました.

~/w/k/jawikify ❯❯❯ cat test.txt | ./jawikify                                                                                                                  master ✱ ◼
/Users/appakun/workspace/klab/jawikify/src/feature_extraction_for_ranking.rb:68:in `entity_representation': undefined method `[]' for nil:NilClass (NoMethodError)
	from /Users/appakun/workspace/klab/jawikify/src/feature_extraction_for_ranking.rb:84:in `calc'
	from src/supervised_linker.rb:68:in `block in calc_score'
	from src/supervised_linker.rb:66:in `each'
	from src/supervised_linker.rb:66:in `with_index'
	from src/supervised_linker.rb:66:in `calc_score'
	from src/supervised_linker.rb:123:in `block (3 levels) in <main>'
	from src/supervised_linker.rb:121:in `map'
	from src/supervised_linker.rb:121:in `block (2 levels) in <main>'
	from src/supervised_linker.rb:113:in `each'
	from src/supervised_linker.rb:113:in `block in <main>'
	from src/supervised_linker.rb:111:in `each'
	from src/supervised_linker.rb:111:in `<main>'

また,コメントアウトされたmaster06_content_mecab_annotated.kchも存在しないため,実行困難だと思われます.

提案

そこで, work/kb.kch をリポジトリ,もしくはダウンロードリストに追加していただけますでしょうか.

一応, jawikify/download_data.sh によってダウンロードした master06_content.kch を利用,entity['abstract_mecab'] => entity['abstract']とすることで,実行可確認はとれているので,問題は work/kb.kch の欠如に絞られると思われます.

よろしくお願いいたします.

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.