mirror of
https://github.com/explosion/spaCy.git
synced 2024-11-10 19:57:17 +03:00
Remove unused cytoolz / itertools imports
This commit is contained in:
parent
ee4733b48c
commit
5b2741f751
|
@ -22,7 +22,6 @@ from spacy.matcher import Matcher
|
|||
import itertools
|
||||
import random
|
||||
import numpy.random
|
||||
import cytoolz
|
||||
|
||||
import conll17_ud_eval
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
# coding: utf8
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from cytoolz import partition_all
|
||||
import cytoolz
|
||||
|
||||
from ...gold import iob_to_biluo
|
||||
|
||||
|
@ -11,7 +11,7 @@ def iob2json(input_data, n_sents=10, *args, **kwargs):
|
|||
Convert IOB files into JSON format for use with train cli.
|
||||
"""
|
||||
docs = []
|
||||
for group in partition_all(n_sents, docs):
|
||||
for group in cytoolz.partition_all(n_sents, docs):
|
||||
group = list(group)
|
||||
first = group.pop(0)
|
||||
to_extend = first["paragraphs"][0]["sentences"]
|
||||
|
|
|
@ -30,7 +30,6 @@ Fused_inside = None
|
|||
import itertools
|
||||
import random
|
||||
import numpy.random
|
||||
import cytoolz
|
||||
|
||||
from . import conll17_ud_eval
|
||||
|
||||
|
|
|
@ -25,7 +25,6 @@ from timeit import default_timer as timer
|
|||
import itertools
|
||||
import random
|
||||
import numpy.random
|
||||
import cytoolz
|
||||
|
||||
from . import conll17_ud_eval
|
||||
|
||||
|
|
|
@ -4,8 +4,6 @@ from __future__ import unicode_literals, print_function
|
|||
|
||||
import re
|
||||
import random
|
||||
import cytoolz
|
||||
import itertools
|
||||
import numpy
|
||||
import tempfile
|
||||
import shutil
|
||||
|
|
|
@ -7,7 +7,6 @@ from __future__ import unicode_literals, print_function
|
|||
from collections import OrderedDict
|
||||
import numpy
|
||||
cimport cython.parallel
|
||||
import cytoolz
|
||||
import numpy.random
|
||||
cimport numpy as np
|
||||
from libc.math cimport exp
|
||||
|
|
Loading…
Reference in New Issue
Block a user