Remove unused cytoolz / itertools imports

This commit is contained in:
Ines Montani 2018-12-03 02:12:07 +01:00
parent ee4733b48c
commit 5b2741f751
6 changed files with 2 additions and 8 deletions

View File

@ -22,7 +22,6 @@ from spacy.matcher import Matcher
import itertools
import random
import numpy.random
import cytoolz
import conll17_ud_eval

View File

@ -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"]

View File

@ -30,7 +30,6 @@ Fused_inside = None
import itertools
import random
import numpy.random
import cytoolz
from . import conll17_ud_eval

View File

@ -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

View File

@ -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

View File

@ -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