mirror of https://github.com/explosion/spaCy.git
Auto-format [ci skip]
This commit is contained in:
parent
e82306937e
commit
2c107f02a4
|
@ -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",
|
||||
|
|
Loading…
Reference in New Issue