llsourcell / ai_reader Goto Github PK
View Code? Open in Web Editor NEWAI Reader for Machine Learning for Hackers #7
License: Apache License 2.0
AI Reader for Machine Learning for Hackers #7
License: Apache License 2.0
print(sys.argv[1])
IndexError: list index out of range
Hey I'm getting a index error when I try and run test.py and also when I made my own copy of test.py. It looks like whatever array that argv[1] is referring to has not been made by the time is referred to at the top of test.py. My question is where is this array located so I can fix it or has anyone else come up with this error and found a solution
also getting an IndexError here as well
/syntaxnet/demo_lib.py", line 21, in get_root_word
root = dependency_tree[2].split()[0]
IndexError: list index out of range
bazel test syntaxnet/... util/utf8/...
..............
ERROR: com.google.devtools.build.lib.packages.BuildFileContainsErrorsException: error loading package '': Extension file not found. Unable to load package for '//tensorflow/tensorflow:workspace.bzl': BUILD file not found on package path.
INFO: Elapsed time: 0.741s
ERROR: Couldn't start the build. Unable to run tests.
florinb@florinb-VirtualBox:/Desktop/python/AI_Reader/syntaxnet$ # On Mac, run the following:/Desktop/python/AI_Reader/syntaxnet$ bazel test --linkopt=-headerpad_max_install_names \
florinb@florinb-VirtualBox:
syntaxnet/... util/utf8/...
I've installed all dependencies in the readme and following what I did is.
# On Mac, run the following:
bazel test --linkopt=-headerpad_max_install_names \
syntaxnet/... util/utf8/...
With following error message:
bazel test --linkopt=-headerpad_max_install_names \
> syntaxnet/... util/utf8/...
...........
ERROR: no targets found beneath 'syntaxnet'.
INFO: Elapsed time: 0.492s
ERROR: Couldn't start the build. Unable to run tests.
Hey man, first of all to start, LOVE the videos!
I have found a problem with utils/utf8/... when I run the bazel command I am thrown with this:
ERROR: no targets found beneath 'utils/utf8'.
INFO: Elapsed time: 0.102s
ERROR: Couldn't start the build. Unable to run tests.
could this be an issue as to why I cannot run the python script test.p
? To point out my error looks like the following:
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 <module>
root = demo_lib.get_root_word(dep_tree)
File "/root/Desktop/AI_Reader-master/syntaxnet/demo_lib.py", line 21, in get_root_word
root = dependency_tree[2].split()[0]
IndexError: list index out of range
Thanks in advance!
Hi @llSourcell, do you have any idea what might cause this? Mac OSX 10.11.16
Googled but can't find anything, other than someone from the Bazel team saying to file an issue in a fork of this project.
$ bazel test --linkopt=-headerpad_max_install_names syntaxnet/... util/utf8/...
........
ERROR: Failed to load Skylark extension '//tensorflow/tensorflow:workspace.bzl'.
It usually happens when the repository is not defined prior to being used.
Maybe repository '' was defined later in your WORKSPACE file?
ERROR: cycles detected during target parsing.
INFO: Elapsed time: 0.386s
ERROR: Couldn't start the build. Unable to run tests.
Great videos by the way, very clear and engaging!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.