mirror of
https://github.com/explosion/spaCy.git
synced 2025-07-12 17:22:25 +03:00
black
This commit is contained in:
parent
85dd4d4c3b
commit
d544c903b6
|
@ -1,8 +1,7 @@
|
||||||
from functools import partial
|
from functools import partial
|
||||||
from typing import Any, Callable, Dict, Iterable, List, Optional, Tuple, cast
|
from typing import Any, Callable, Dict, Iterable, List, Optional, Tuple, cast
|
||||||
|
|
||||||
from thinc.api import (Config, Model, Ops, Optimizer, get_current_ops,
|
from thinc.api import Config, Model, Ops, Optimizer, get_current_ops, set_dropout_rate
|
||||||
set_dropout_rate)
|
|
||||||
from thinc.types import Floats2d, Ints1d, Ragged
|
from thinc.types import Floats2d, Ints1d, Ragged
|
||||||
|
|
||||||
from spacy.language import Language
|
from spacy.language import Language
|
||||||
|
|
|
@ -1,11 +1,9 @@
|
||||||
from dataclasses import dataclass
|
from dataclasses import dataclass
|
||||||
from functools import partial
|
from functools import partial
|
||||||
from typing import (Any, Callable, Dict, Iterable, List, Optional, Tuple,
|
from typing import Any, Callable, Dict, Iterable, List, Optional, Tuple, Union, cast
|
||||||
Union, cast)
|
|
||||||
|
|
||||||
import numpy
|
import numpy
|
||||||
from thinc.api import (Config, Model, Ops, Optimizer, get_current_ops,
|
from thinc.api import Config, Model, Ops, Optimizer, get_current_ops, set_dropout_rate
|
||||||
set_dropout_rate)
|
|
||||||
from thinc.types import Floats2d, Ints2d, Ragged
|
from thinc.types import Floats2d, Ints2d, Ragged
|
||||||
|
|
||||||
from ..compat import Protocol, runtime_checkable
|
from ..compat import Protocol, runtime_checkable
|
||||||
|
|
Loading…
Reference in New Issue
Block a user