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",