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

Commit

Permalink
Ensure third_party is installed
Browse files Browse the repository at this point in the history
  • Loading branch information
PetrochukM committed Oct 21, 2019
1 parent f1b8144 commit 3d1568d
Show file tree
Hide file tree
Showing 8 changed files with 6 additions and 6 deletions.
File renamed without changes.
2 changes: 1 addition & 1 deletion torchnlp/datasets/simple_qa.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import os

from third_party.lazy_loader import LazyLoader
from torchnlp._third_party.lazy_loader import LazyLoader

pd = LazyLoader('pd', globals(), 'pandas')

Expand Down
2 changes: 1 addition & 1 deletion torchnlp/download.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import urllib.request
import zipfile

from third_party.lazy_loader import LazyLoader
from torchnlp._third_party.lazy_loader import LazyLoader
from tqdm import tqdm

requests = LazyLoader('requests', globals(), 'requests')
Expand Down
2 changes: 1 addition & 1 deletion torchnlp/encoders/text/subword_text_tokenizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
import unicodedata

# Dependency imports
from third_party.lazy_loader import LazyLoader
from torchnlp._third_party.lazy_loader import LazyLoader

six = LazyLoader('six', globals(), 'six')

Expand Down
2 changes: 1 addition & 1 deletion torchnlp/metrics/bleu.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
import tempfile
import logging

from third_party.lazy_loader import LazyLoader
from torchnlp._third_party.lazy_loader import LazyLoader

import numpy as np

Expand Down
2 changes: 1 addition & 1 deletion torchnlp/samplers/balanced_sampler.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from third_party.weighted_random_sampler import WeightedRandomSampler
from torchnlp._third_party.weighted_random_sampler import WeightedRandomSampler

from torchnlp.utils import identity

Expand Down
2 changes: 1 addition & 1 deletion torchnlp/word_to_vector/pretrained_word_vectors.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
import logging
import os

from third_party.lazy_loader import LazyLoader
from torchnlp._third_party.lazy_loader import LazyLoader
from tqdm import tqdm

import torch
Expand Down

0 comments on commit 3d1568d

Please sign in to comment.