Skip to content

Commit

Permalink
p2
Browse files Browse the repository at this point in the history
  • Loading branch information
AngledLuffa committed Feb 4, 2025
1 parent ece9530 commit 913e9e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion stanza/models/constituency/parser_training.py
Original file line number Diff line number Diff line change
Expand Up @@ -627,7 +627,7 @@ def train_model_one_batch(epoch, batch_idx, model, training_batch, transition_te
missing_node_errors.extend(Tree.single_missing_node_errors(gold_tree, reparsed_tree))

if common_missing_nodes:
synthetic_trees = [x.tree.flip_missing_node_errors(common_missing_nodes) for x in training_batch]
synthetic_trees = [x.tree.flip_first_missing_node_error(common_missing_nodes) for x in training_batch]
reparsed_results = model.analyze_trees(synthetic_trees, keep_constituents=True, keep_scores=False, keep_output_layers=True)

reparsed_negatives = []
Expand Down

0 comments on commit 913e9e7

Please # to comment.