Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

Add vocabulary and embedding #10074

Merged
merged 20 commits into from
Mar 15, 2018
4 changes: 2 additions & 2 deletions python/mxnet/gluon/text/embedding.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@
import warnings
import zipfile

from . import _constants as C
from mxnet import ndarray as nd
from mxnet import nd
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we usually use relative import.

from mxnet import registry
from mxnet.gluon.utils import check_sha1, download, _get_repo_file_url
from . import _constants as C


def register(embedding_cls):
Expand Down
2 changes: 1 addition & 1 deletion python/mxnet/gluon/text/vocab.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@
from __future__ import print_function

import collections
from mxnet import nd

from . import _constants as C
from .embedding import TokenEmbedding
from mxnet import nd


class Vocabulary(object):
Expand Down