SyntaxNet: Segmentation Fault 11 When Training POS Tagger
Please let us know which model this issue is about (specify the top-level directory)
I am trying to train the POS tagger on my own dataset. When I update the pbtxt file to point to my own training data files, or try training the parser on the UD files, I get a segmentation fault.
INFO:tensorflow:Computing lexicon...
W external/org_tensorflow/tensorflow/core/platform/cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use SSE4.1 instructions, but these are available on your machine and could speed up CPU computations.
W external/org_tensorflow/tensorflow/core/platform/cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use SSE4.2 instructions, but these are available on your machine and could speed up CPU computations.
W external/org_tensorflow/tensorflow/core/platform/cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use AVX instructions, but these are available on your machine and could speed up CPU computations.
W external/org_tensorflow/tensorflow/core/platform/cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use AVX2 instructions, but these are available on your machine and could speed up CPU computations.
W external/org_tensorflow/tensorflow/core/platform/cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use FMA instructions, but these are available on your machine and could speed up CPU computations.
I syntaxnet/lexicon_builder.cc:134] Term maps collected over 109938 tokens from 6634 documents
I syntaxnet/term_frequency_map.cc:139] Saved 3758 terms to /Users/simon.hughes/data/tensorflow/syntaxnet/tagger/cb/models/brain_pos/greedy/128-0.08-3600-0.9-0/word-map.
I syntaxnet/term_frequency_map.cc:139] Saved 3348 terms to /Users/simon.hughes/data/tensorflow/syntaxnet/tagger/cb/models/brain_pos/greedy/128-0.08-3600-0.9-0/lcword-map.
I syntaxnet/term_frequency_map.cc:139] Saved 0 terms to /Users/simon.hughes/data/tensorflow/syntaxnet/tagger/cb/models/brain_pos/greedy/128-0.08-3600-0.9-0/tag-map.
I syntaxnet/term_frequency_map.cc:139] Saved 1 terms to /Users/simon.hughes/data/tensorflow/syntaxnet/tagger/cb/models/brain_pos/greedy/128-0.08-3600-0.9-0/category-map.
I syntaxnet/term_frequency_map.cc:139] Saved 1 terms to /Users/simon.hughes/data/tensorflow/syntaxnet/tagger/cb/models/brain_pos/greedy/128-0.08-3600-0.9-0/label-map.
I syntaxnet/term_frequency_map.cc:139] Saved 72 terms to /Users/simon.hughes/data/tensorflow/syntaxnet/tagger/cb/models/brain_pos/greedy/128-0.08-3600-0.9-0/char-map.
I syntaxnet/term_frequency_map.cc:103] Loaded 1 terms from /Users/simon.hughes/data/tensorflow/syntaxnet/tagger/cb/models/brain_pos/greedy/128-0.08-3600-0.9-0/label-map.
I syntaxnet/embedding_feature_extractor.cc:35] Features: stack(3).word stack(2).word stack(1).word stack.word input.word input(1).word input(2).word input(3).word;input.digit input.hyphen;
I syntaxnet/embedding_feature_extractor.cc:36] Embedding names: words;other
I syntaxnet/embedding_feature_extractor.cc:37] Embedding dims: 64;4;8;8
I syntaxnet/term_frequency_map.cc:103] Loaded 3758 terms from /Users/simon.hughes/data/tensorflow/syntaxnet/tagger/cb/models/brain_pos/greedy/128-0.08-3600-0.9-0/word-map.
syntaxnet/demo_simon.sh: line 18: 4739 Segmentation fault: 11 bazel-bin/syntaxnet/parser_trainer --task_context=/Users/simon.hughes/GitHub/NlpResearch/PythonNlpResearch/DeepLearning/TensorFlow/SyntaxNet/context.pbtxt --arg_prefix=brain_pos --compute_lexicon --graph_builder=greedy --training_corpus=training-corpus --tuning_corpus=tuning-corpus --output_path='/Users/simon.hughes/data/tensorflow/syntaxnet/tagger/cb/models' --batch_size=32 --decay_steps=3600 --hidden_layer_sizes=128 --learning_rate=0.08 --momentum=0.9 --seed=0 --params=128-0.08-3600-0.9-0
Here's the script I am trying to run:
bazel-bin/syntaxnet/parser_trainer \
--task_context=/Users/simon.hughes/GitHub/NlpResearch/PythonNlpResearch/DeepLearning/TensorFlow/SyntaxNet/context.pbtxt \
--arg_prefix=brain_pos \
--compute_lexicon \
--graph_builder=greedy \
--training_corpus=training-corpus \
--tuning_corpus=tuning-corpus \
--output_path='/Users/simon.hughes/data/tensorflow/syntaxnet/tagger/cb/models' \
--batch_size=32 \
--decay_steps=3600 \
--hidden_layer_sizes=128 \
--learning_rate=0.08 \
--momentum=0.9 \
--seed=0 \
--params=128-0.08-3600-0.9-0
I am running this on Mac OSX 10.11.6, with the setup complying with the Mac OSX set up instructions, including all versions of proto buffers (3.0.0b2), bazel (4.3), etc.
I get the same error when running the model within docker itself, both on my own data and on the UD data. Please help
hi, I have a similar situation with you,i am trying to train the POS tagger on conll files,and results show error,my system is Ubuntu. Did you fix it? If you do , could you share how to make it? I will be grateful for that.
@simonhughes22 Couldn't find the context.pbtxt file on GitHub - did you commit it? Also, can you try running our latest code? We fixed an OS X issue recently.
Automatically closing due to lack of recent activity. Please update the issue when new information becomes available, and we will reopen the issue. Thanks!