Annotate a corpus Syntaxnet
models/syntaxnet/syntaxnet
I am trying to annotate a corpus using Syntaxnet. I added the following lines in the end of the /models/syntaxnet/syntaxnet/models/parsey_mcparseface/context.pbtxt file:
input { name: 'input_file' record_format: 'english-text' Part { file_pattern: '/home/melvyn/text.txt' } } output { name: 'output_file' record_format: 'english-text' Part { file_pattern: '/home/melvyn/text-tagged.txt' } }
Now, I am in the models/syntaxnet/syntaxnet directory and am running the command: ./demo.sh --input=input_file --output=output_file
But I am getting: ./demo.sh: line 31: bazel-bin/syntaxnet/parser_eval: No such file or directory ./demo.sh: line 43: bazel-bin/syntaxnet/parser_eval: No such file or directory ./demo.sh: line 55: bazel-bin/syntaxnet/conll2tree: No such file or directory
As per an answer on Stack overflow (http://stackoverflow.com/questions/37353320/getting-started-with-syntaxnet-start-parsing-text-right-away-with-parsey-mcpars) I edited my demo.sh file and am running the same command: ./demo.sh --input=input_file --output=output_file. I am getting a series of errors that says: [libprotobuf ERROR external/tf/google/protobuf/src/google/protobuf/text_format.cc:291] Error parsing text-format syntaxnet.TaskSpec: 200:8: Message type "syntaxnet.TaskOutput" has no field named "Part". E external/tf/tensorflow/core/framework/op_segment.cc:53] Create kernel failed: Invalid argument: Could not parse task context at syntaxnet/models/parsey_mcparseface/context.pbtxt E external/tf/tensorflow/core/common_runtime/executor.cc:333] Executor failed to create kernel. Invalid argument: Could not parse task context at syntaxnet/models/parsey_mcparseface/context.pbtxt [[Node: DocumentSource = DocumentSourcebatch_size=32, corpus_name="stdin-conll", task_context="syntaxnet/models/parsey_mcparseface/context.pbtxt", _device="/job:localhost/replica:0/task:0/cpu:0"]]
Can someone help me resolve this? Am I doing this correct?
for reference in case others can't figure this out just cd up to a higher directory level. models/syntaxnet/syntaxnet -> models/syntaxnet
@kskp Hi, I wonder if you can let me know how you solved your problem?