Skip to content
Snippets Groups Projects
Commit 70dc620b authored by Franck Dary's avatar Franck Dary
Browse files

parser is no longer blacklisted from dynamic oracle

parent bf428a88
No related branches found
No related tags found
No related merge requests found
......@@ -88,7 +88,7 @@ void Trainer::extractExamples(SubConfig & config, bool debug, std::filesystem::p
goldTransition = machine.getTransitionSet().getBestAppliableTransition(config);
if (dynamicOracle and util::choiceWithProbability(0.8) and config.getState() != "tokenizer" and config.getState() != "parser" and config.getState() != "segmenter")
if (dynamicOracle and util::choiceWithProbability(0.8) and config.getState() != "tokenizer" and config.getState() != "segmenter")
{
auto neuralInput = torch::from_blob(context[0].data(), {(long)context[0].size()}, torch::kLong).clone().to(NeuralNetworkImpl::device);
auto prediction = machine.getClassifier()->getNN()(neuralInput).squeeze();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment