Refactor imports from future (pattern.vector)
@@ -25,6 +25,10 @@ from __future__ import unicode_literals
from __future__ import absolute_import
from __future__ import division
+from builtins import str, bytes, int
+from builtins import map, zip, filter
+from builtins import object, range
+
from . import stemmer
_stemmer=stemmer
@@ -46,9 +50,6 @@ except ImportError:
import gzip
import types
-from builtins import str, bytes, int, range, map, zip, filter
-from builtins import object
-
from math import log, exp, sqrt, tanh
from time import time
from random import random, randint, uniform, choice, sample, seed
