This commit is contained in:
Matthew Honnibal 2024-09-08 14:34:07 +02:00
parent 3c86cc669a
commit 6a90330ff4
3 changed files with 6 additions and 5 deletions

View File

@ -1,8 +1,9 @@
# cython: infer_types=True
# cython: profile=False
cimport cython
from typing import Iterable, Iterator, List, Optional, Tuple, Union
from contextlib import contextmanager
from typing import Iterable, Iterator, List, Optional, Tuple, Union
from libc.stdint cimport uint32_t
from libc.string cimport memcpy

View File

@ -1,9 +1,9 @@
from contextlib import contextmanager
from pathlib import Path
from typing import Any, Callable, Dict, Iterable, Iterator, List, Optional, Union
from contextlib import contextmanager
from thinc.types import Floats1d, FloatsXd
from cymem.cymem import Pool
from thinc.types import Floats1d, FloatsXd
from . import Language
from .lexeme import Lexeme

View File

@ -1,10 +1,10 @@
import functools
from contextlib import ExitStack, contextmanager
from typing import Iterator, Optional
import numpy
import srsly
from thinc.api import get_array_module, get_current_ops
from contextlib import contextmanager, ExitStack
from typing import Iterator, Optional
from .attrs cimport LANG, ORTH
from .lexeme cimport EMPTY_LEXEME, OOV_RANK, Lexeme