首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >使用Syntaxnet注释语料库

使用Syntaxnet注释语料库
EN

Stack Overflow用户
提问于 2016-06-06 20:14:07
回答 1查看 508关注 0票数 2

我试图使用Syntaxnet对语料库进行注释。我在/models/syntaxnet/syntaxnet/models/parsey_mcparseface/context.pbtxt文件的末尾添加了以下行:

代码语言:javascript
复制
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'
}
}

当我运行命令时:

代码语言:javascript
复制
./demo.sh --input=input_file --output=output_file

我得到了:

代码语言:javascript
复制
./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文件,现在我得到了一些错误,比如:

代码语言:javascript
复制
[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"]]

什么是可能的解决办法?

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2016-06-11 04:57:24

虽然不确定,但我认为您没有从根目录运行shell脚本。请按照上面提到的here的说明运行它

希望能帮上忙。

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/37666094

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档