mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-26 01:46:28 +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 itertools
|
||||||
import random
|
import random
|
||||||
import numpy.random
|
import numpy.random
|
||||||
import cytoolz
|
|
||||||
|
|
||||||
import conll17_ud_eval
|
import conll17_ud_eval
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
# coding: utf8
|
# coding: utf8
|
||||||
from __future__ import unicode_literals
|
from __future__ import unicode_literals
|
||||||
|
|
||||||
from cytoolz import partition_all
|
import cytoolz
|
||||||
|
|
||||||
from ...gold import iob_to_biluo
|
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.
|
Convert IOB files into JSON format for use with train cli.
|
||||||
"""
|
"""
|
||||||
docs = []
|
docs = []
|
||||||
for group in partition_all(n_sents, docs):
|
for group in cytoolz.partition_all(n_sents, docs):
|
||||||
group = list(group)
|
group = list(group)
|
||||||
first = group.pop(0)
|
first = group.pop(0)
|
||||||
to_extend = first["paragraphs"][0]["sentences"]
|
to_extend = first["paragraphs"][0]["sentences"]
|
||||||
|
|
|
@ -30,7 +30,6 @@ Fused_inside = None
|
||||||
import itertools
|
import itertools
|
||||||
import random
|
import random
|
||||||
import numpy.random
|
import numpy.random
|
||||||
import cytoolz
|
|
||||||
|
|
||||||
from . import conll17_ud_eval
|
from . import conll17_ud_eval
|
||||||
|
|
||||||
|
|
|
@ -25,7 +25,6 @@ from timeit import default_timer as timer
|
||||||
import itertools
|
import itertools
|
||||||
import random
|
import random
|
||||||
import numpy.random
|
import numpy.random
|
||||||
import cytoolz
|
|
||||||
|
|
||||||
from . import conll17_ud_eval
|
from . import conll17_ud_eval
|
||||||
|
|
||||||
|
|
|
@ -4,8 +4,6 @@ from __future__ import unicode_literals, print_function
|
||||||
|
|
||||||
import re
|
import re
|
||||||
import random
|
import random
|
||||||
import cytoolz
|
|
||||||
import itertools
|
|
||||||
import numpy
|
import numpy
|
||||||
import tempfile
|
import tempfile
|
||||||
import shutil
|
import shutil
|
||||||
|
|
|
@ -7,7 +7,6 @@ from __future__ import unicode_literals, print_function
|
||||||
from collections import OrderedDict
|
from collections import OrderedDict
|
||||||
import numpy
|
import numpy
|
||||||
cimport cython.parallel
|
cimport cython.parallel
|
||||||
import cytoolz
|
|
||||||
import numpy.random
|
import numpy.random
|
||||||
cimport numpy as np
|
cimport numpy as np
|
||||||
from libc.math cimport exp
|
from libc.math cimport exp
|
||||||
|
|
Loading…
Reference in New Issue
Block a user