Coder Social home page Coder Social logo

Getting an index error about ai_reader HOT 5 OPEN

Niko2756 avatar Niko2756 commented on July 30, 2024
Getting an index error

from ai_reader.

Comments (5)

llSourcell avatar llSourcell commented on July 30, 2024 1

@Niko2756 try just using a one word argument in the command line like

test.py hello

still get an error? i think the error has to due with parsing the number of words from the command line. it may be too many different words

from ai_reader.

Niko2756 avatar Niko2756 commented on July 30, 2024

I am getting this:

Nicholass-MacBook-Pro:syntaxnet Niko$ python test.py hello
hello
syntaxnet/demo.sh: line 31: bazel-bin/syntaxnet/parser_eval: No such file or directory
syntaxnet/demo.sh: line 43: bazel-bin/syntaxnet/parser_eval: No such file or directory
syntaxnet/demo.sh: line 55: bazel-bin/syntaxnet/conll2tree: No such file or directory
Traceback (most recent call last):
File "test.py", line 10, in
root = demo_lib.get_root_word(dep_tree)
File "/Users/Niko/Downloads/AI_Reader-master/syntaxnet/demo_lib.py", line 21, in get_root_word
root = dependency_tree[2].split()[0]

I think I've installed everything except the one thing that is not working and not installed is this: bazel test --linkopt=-headerpad_max_install_names
syntaxnet/... util/utf8/...

could that be causing the error?

When I try to run the bazel test i get this:
Nicholass-MacBook-Pro:syntaxnet Niko$ bazel test --linkopt=-headerpad_max_install_names \

syntaxnet/... util/utf8/...
ERROR: package contains errors: syntaxnet.
ERROR: no such package 'external': Error encountered while dealing with the WORKSPACE file: WORKSPACE file could not be parsed.
INFO: Elapsed time: 0.062s
ERROR: Couldn't start the build. Unable to run tests.

I'm going to keep on working on it, But any help would be super appreciated.

from ai_reader.

llSourcell avatar llSourcell commented on July 30, 2024

@Niko2756 did you ever figure this out? if so if you could make a PR i'd merge it thanks

from ai_reader.

MotorCityCobra avatar MotorCityCobra commented on July 30, 2024

I get the same type of error. But I also have a problem with "/bin/sh: syntaxnet/demo.sh:"
It says "No such file or directory"
I don't know what '/bin/sh:' is but syntaxnet/demo.sh: is in the root file with everything.

Here's what I'm getting

$ python /Users/MyName/Desktop/AIReader/AI.py What is the most important word in this sentence?
What
/bin/sh: syntaxnet/demo.sh: No such file or directory
Traceback (most recent call last):
File "/Users/MyName/Desktop/AIReader/AI.py", line 10, in
root = demo_lib.get_root_word(dep_tree)
File "/Users/MyName/Desktop/AIReader/demo_lib.py", line 21, in get_root_word
root = dependency_tree[2].split()[0]
IndexError: list index out of range

from ai_reader.

quintendewilde avatar quintendewilde commented on July 30, 2024

Also have the same error! And also the AI_Writer also doesn't work. 2 beautiful projects that are broken @llSourcell time to fix both?? :)
That would be super awesome!!
That would be super awesome!!

from ai_reader.

Related Issues (5)

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.