Add these ad lines to "context.pbtxt" at the end of the file. Here, βinpβ and βoutβ are text files present in the syntexnet root directory.
input { name: 'inp_file' record_format: 'english-text' Part { file_pattern: 'inp' } } input { name: 'out_file' record_format: 'english-text' Part { file_pattern: 'out' } }
Add sentences to the "inp" file for which you want to mark, and specify them in the shell the next time you start the syntax network using the --input and --output tags.
Just to help you a little more, I am inserting a shell example.
bazel-bin/syntaxnet/parser_eval \ --input inp_file \ --output stdout-conll \ --model syntaxnet/models/parsey_mcparseface/tagger-params \ --task_context syntaxnet/models/parsey_mcparseface/context.pbtxt \ --hidden_layer_sizes 64 \ --arg_prefix brain_tagger \ --graph_builder structured \ --slim_model \ --batch_size 1024 | bazel-bin/syntaxnet/parser_eval \ --input stdout-conll \ --output out_file \ --hidden_layer_sizes 512,512 \ --arg_prefix brain_parser \ --graph_builder structured \ --task_context syntaxnet/models/parsey_mcparseface/context.pbtxt \ --model_path syntaxnet/models/parsey_mcparseface/parser-params \ --slim_model --batch_size 1024
In the above script, the output (POS tagging) of the first shell command is used as input for the second shell command, where the two shell commands are separated by the "|"
source share