From 0c91dd9e15fb3a5487f893a05bc4b2aa02a801ed Mon Sep 17 00:00:00 2001 From: Matthew Honnibal Date: Mon, 16 Mar 2015 08:45:54 -0400 Subject: [PATCH] * Re-enable entity training --- bin/parser/train.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/parser/train.py b/bin/parser/train.py index 70042a8a4..fdadc9d02 100755 --- a/bin/parser/train.py +++ b/bin/parser/train.py @@ -226,10 +226,10 @@ def train(Language, train_loc, model_dir, n_iter=15, feat_set=u'basic', seed=0, gold = GoldParse(tokens, annot_tuples) nlp.tagger(tokens) nlp.parser.train(tokens, gold, force_gold=force_gold) - #nlp.entity.train(tokens, gold, force_gold=force_gold) + nlp.entity.train(tokens, gold, force_gold=force_gold) nlp.tagger.train(tokens, gold.tags) - #nlp.entity(tokens) + nlp.entity(tokens) nlp.parser(tokens) scorer.score(tokens, gold, verbose=False) print '%d:\t%.3f\t%.3f\t%.3f' % (itn, scorer.uas, scorer.ents_f, scorer.tags_acc)