{"action":"closed","issue":{"url":"https://api.github.com/repos/tensorflow/models/issues/205","repository_url":"https://api.github.com/repos/tensorflow/models","labels_url":"https://api.github.com/repos/tensorflow/models/issues/205/labels{/name}","comments_url":"https://api.github.com/repos/tensorflow/models/issues/205/comments","events_url":"https://api.github.com/repos/tensorflow/models/issues/205/events","html_url":"https://github.com/tensorflow/models/issues/205","id":160502666,"number":205,"title":"Having to run syntaxnet twice to get both tokenized/POS-tagged file and dependency parsed file","user":{"login":"shaxtell","id":11743197,"avatar_url":"https://avatars.githubusercontent.com/u/11743197?v=3","gravatar_id":"","url":"https://api.github.com/users/shaxtell","html_url":"https://github.com/shaxtell","followers_url":"https://api.github.com/users/shaxtell/followers","following_url":"https://api.github.com/users/shaxtell/following{/other_user}","gists_url":"https://api.github.com/users/shaxtell/gists{/gist_id}","starred_url":"https://api.github.com/users/shaxtell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shaxtell/subscriptions","organizations_url":"https://api.github.com/users/shaxtell/orgs","repos_url":"https://api.github.com/users/shaxtell/repos","events_url":"https://api.github.com/users/shaxtell/events{/privacy}","received_events_url":"https://api.github.com/users/shaxtell/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-06-15T19:22:12Z","updated_at":"2016-06-21T15:58:43Z","closed_at":"2016-06-21T15:58:42Z","body":"## Have to run demo.sh twice when reading a file from a directory and outputting to another file in another directory.\r\nBelow, I show my demo.sh file and my context.pbtxt file. I am reading in an english-text file from a directory and then outputting the results to files in another directory (see context.pbtxt for details). I have to run demo.sh twice (from /models/syntaxnet/) in order to get both the test_data_out and test_data_parsed. On the first run, the test_data_out is created. Then, on the second run, the test_data_parsed is created. It seems that syntaxnet is only reading through the first PARSER_EVAL on the first run and ignoring the pipe to the second PARSER_EVAL and to bazel. Then, on the second run, it sees that the output for the first PARSER_EVAL hasn't changed so it moves on to the pipes.\r\n\r\nHow can I get this all to run a single time?\r\n\r\n> demo.sh\r\n> PARSER_EVAL=bazel-bin/syntaxnet/parser_eval\r\n> MODEL_DIR=syntaxnet/models/parsey_mcparseface\r\n> [[ \"$1\" == \"--conll\" ]] && INPUT_FORMAT=stdin-conll || INPUT_FORMAT=stdin\r\n> \r\n> $PARSER_EVAL \\\r\n> $PARSER_EVAL \\\r\n>   --input=test_data \\\r\n>   --output=test_data_out \\\r\n>   --hidden_layer_sizes=64 \\\r\n>   --arg_prefix=brain_tagger \\\r\n>   --graph_builder=structured \\\r\n>   --task_context=$MODEL_DIR/context.pbtxt \\\r\n>   --model_path=$MODEL_DIR/tagger-params \\\r\n>   --slim_model \\\r\n>   --batch_size=1024 \\\r\n>   --alsologtostderr \\\r\n>    | \\\r\n>   $PARSER_EVAL \\\r\n>   --input=test_data_out \\\r\n>   --output=test_data_parsed \\\r\n>   --hidden_layer_sizes=512,512 \\\r\n>   --arg_prefix=brain_parser \\\r\n>   --graph_builder=structured \\\r\n>   --task_context=$MODEL_DIR/context.pbtxt \\\r\n>   --model_path=$MODEL_DIR/parser-params \\\r\n>   --slim_model \\\r\n>   --batch_size=1024 \\\r\n>   --alsologtostderr \\\r\n>   | \\\r\n>   bazel-bin/syntaxnet/conll2tree \\\r\n>   --task_context=$MODEL_DIR/context.pbtxt \\\r\n>   --alsologtostderr\r\n\r\n> The last three inputs from context.pbtxt\r\n>input {\r\n>  name: 'test_data'\r\n>  record_format: 'english-text'\r\n>  Part {\r\n>    file_pattern: 'TestData/Microbe_test.txt'\r\n>  }\r\n>}\r\n>input {\r\n>  name: 'test_data_out'\r\n>  record_format: 'english-text'\r\n>  Part {\r\n>    file_pattern: 'TestDataOut/test_data_out.txt'\r\n>  }\r\n>}\r\n>input {\r\n>  name: 'test_data_parsed'\r\n>  record_format: 'conll-sentence'\r\n>  Part {\r\n>    file_pattern: 'TestDataOut/test_data_parsed.txt'\r\n>  }\r\n>}"}}
{"actor":{"display_login":"shaxtell"}}