Update train.py

This commit is contained in:
Ines Montani 2019-03-16 16:04:15 +01:00
parent e7aa25d9b1
commit 0f8739c7cb
1 changed files with 2 additions and 2 deletions

View File

@ -211,8 +211,8 @@ def train(
msg.text("Loaded pretrained tok2vec for: {}".format(components)) msg.text("Loaded pretrained tok2vec for: {}".format(components))
# fmt: off # fmt: off
row_head = ("Itn", "Dep Loss", "NER Loss", "UAS", "NER P", "NER R", "NER F", "Tag %", "Token %", "CPU WPS", "GPU WPS") row_head = ["Itn", "Dep Loss", "NER Loss", "UAS", "NER P", "NER R", "NER F", "Tag %", "Token %", "CPU WPS", "GPU WPS"]
row_widths = (3, 10, 10, 7, 7, 7, 7, 7, 7, 7, 7) row_widths = [3, 10, 10, 7, 7, 7, 7, 7, 7, 7, 7]
if has_beam_widths: if has_beam_widths:
row_head.insert(1, "Beam W.") row_head.insert(1, "Beam W.")
row_widths.insert(1, 7) row_widths.insert(1, 7)