From 2c107f02a4d60bda2440db0aad1a88cbbf4fb52d Mon Sep 17 00:00:00 2001 From: Ines Montani Date: Thu, 31 Oct 2019 15:01:56 +0100 Subject: [PATCH] Auto-format [ci skip] --- spacy/ml/tok2vec.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/spacy/ml/tok2vec.py b/spacy/ml/tok2vec.py index 6180e2185..0b30551b5 100644 --- a/spacy/ml/tok2vec.py +++ b/spacy/ml/tok2vec.py @@ -81,6 +81,7 @@ def MultiHashEmbed(config): @register_architecture("spacy.CharacterEmbed.v1") def CharacterEmbed(config): from .. import _ml + width = config["width"] chars = config["chars"] @@ -128,7 +129,6 @@ def PretrainedVectors(config): return StaticVectors(config["vectors_name"], config["width"], config["column"]) - @register_architecture("spacy.TorchBiLSTMEncoder.v1") def TorchBiLSTMEncoder(config): import torch.nn @@ -143,9 +143,6 @@ def TorchBiLSTMEncoder(config): ) - - - _EXAMPLE_CONFIG = { "@doc2feats": { "arch": "Doc2Feats",