2016-06-06 4 views
2

Syntaxnet을 사용하여 코퍼스에 주석을 추가하려고합니다. 내가 얻고Syntaxnet을 사용하여 코퍼스에 주석 달기

./demo.sh --input=input_file --output=output_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' 
} 
} 

내가 명령을 실행하면 : 나는 /models/syntaxnet/syntaxnet/models/parsey_mcparseface/context.pbtxt 파일의 끝에 다음 줄을 추가 :

./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 

여기에 ## 주어진 답에 따르면 ## 내 demo.sh 파일을 변경하고 지금은 말을 몇 가지 오류를 얻을 :

[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"]] 

가능한 해결책은 무엇입니까?

답변

1

확실하지 않지만 루트 디렉토리에서 쉘 스크립트를 실행하지 않는 것으로 보입니다. 언급 된 지침에 따라 실행 해보십시오. here

도움이되기를 바랍니다.