mirror of
https://github.com/explosion/spaCy.git
synced 2025-01-26 01:04:34 +03:00
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")
|
@register_architecture("spacy.CharacterEmbed.v1")
|
||||||
def CharacterEmbed(config):
|
def CharacterEmbed(config):
|
||||||
from .. import _ml
|
from .. import _ml
|
||||||
|
|
||||||
width = config["width"]
|
width = config["width"]
|
||||||
chars = config["chars"]
|
chars = config["chars"]
|
||||||
|
|
||||||
|
@ -128,7 +129,6 @@ def PretrainedVectors(config):
|
||||||
return StaticVectors(config["vectors_name"], config["width"], config["column"])
|
return StaticVectors(config["vectors_name"], config["width"], config["column"])
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@register_architecture("spacy.TorchBiLSTMEncoder.v1")
|
@register_architecture("spacy.TorchBiLSTMEncoder.v1")
|
||||||
def TorchBiLSTMEncoder(config):
|
def TorchBiLSTMEncoder(config):
|
||||||
import torch.nn
|
import torch.nn
|
||||||
|
@ -143,9 +143,6 @@ def TorchBiLSTMEncoder(config):
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
_EXAMPLE_CONFIG = {
|
_EXAMPLE_CONFIG = {
|
||||||
"@doc2feats": {
|
"@doc2feats": {
|
||||||
"arch": "Doc2Feats",
|
"arch": "Doc2Feats",
|
||||||
|
|
Loading…
Reference in New Issue
Block a user