You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: syntaxnet_setup_for_osx.md
+28Lines changed: 28 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -54,6 +54,7 @@ cd <LOCATION_TO_WHERE_SYNTAXNET_REPO_IS_COPIED>/models/research/syntaxnet/tensor
54
54
cd <LOCATION_TO_WHERE_SYNTAXNET_REPO_IS_COPIED>
55
55
run “bazel test --linkopt=-headerpad_max_install_names dragnn/... syntaxnet/... util/utf8/…”
56
56
```
57
+
All the tests should pass with the above command and it will create bazel-bin directory in `<LOCATION_TO_WHERE_SYNTAXNET_REPO_IS_COPIED>/models/research/syntaxnet/bazel-bin`. This is the bin folder using which we'll package syntaxnet as module and install it. Before that, let's test the installation.
57
58
9. Test Syntaxnet:
58
59
```markdown
59
60
cd <LOCATION_TO_WHERE_SYNTAXNET_REPO_IS_COPIED>/models/research/syntaxnet
@@ -63,3 +64,30 @@ echo 'Bob brought the pizza to Alice.' | syntaxnet/demo.sh
###### Open up python shell and check that the following imports work fine
82
+
```markdown
83
+
python
84
+
from syntaxnet import sentence_pb2
85
+
from syntaxnet import graph_builder
86
+
from syntaxnet import structured_graph_builder
87
+
from syntaxnet.ops import load_parser_ops
88
+
from syntaxnet.ops import gen_parser_ops
89
+
from syntaxnet import task_spec_pb2
90
+
```
91
+
92
+
There were a bunch of errors I faced before I could reach this final point of successful installation with imports working in python shell. I've listed the issues that i faced `here` and how i went about fixing them here. Hope that saves some time for you :)
0 commit comments