From 6a6b09bd32f6e687246f1162a645040e90019570 Mon Sep 17 00:00:00 2001 From: Matthew Honnibal Date: Tue, 28 Jul 2020 22:59:42 +0200 Subject: [PATCH] Update morphologizer model --- spacy/pipeline/morphologizer.pyx | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/spacy/pipeline/morphologizer.pyx b/spacy/pipeline/morphologizer.pyx index 56ef44cb9..e76b7fb77 100644 --- a/spacy/pipeline/morphologizer.pyx +++ b/spacy/pipeline/morphologizer.pyx @@ -22,17 +22,23 @@ default_model_config = """ @architectures = "spacy.Tagger.v1" [model.tok2vec] -@architectures = "spacy.HashCharEmbedCNN.v1" -pretrained_vectors = null +@architectures = "spacy.Tok2Vec.v1" + +[model.tok2vec.embed] +@architectures = "spacy.CharacterEmbed.v1" width = 128 -depth = 4 -embed_size = 7000 -window_size = 1 -maxout_pieces = 3 +rows = 7000 nM = 64 nC = 8 -dropout = null + +[model.tok2vec.encode] +@architectures = "spacy.MaxoutWindowEncoder.v1" +width = 128 +depth = 4 +window_size = 1 +maxout_pieces = 3 """ + DEFAULT_MORPH_MODEL = Config().from_str(default_model_config)["model"]