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

Commit

Permalink
fix outstanding issues
Browse files Browse the repository at this point in the history
  • Loading branch information
ozancaglayan committed Feb 20, 2020
1 parent 409590f commit 03d0213
Show file tree
Hide file tree
Showing 7 changed files with 4 additions and 66 deletions.
2 changes: 0 additions & 2 deletions nmtpytorch/datasets/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
from .kaldi import KaldiDataset
from .imagefolder import ImageFolderDataset
from .text import TextDataset
from .onehot import OneHotDataset
from .numpy_sequence import NumpySequenceDataset
from .label import LabelDataset
from .shelve import ShelveDataset
Expand All @@ -16,7 +15,6 @@ def get_dataset(type_):
'kaldi': KaldiDataset,
'imagefolder': ImageFolderDataset,
'text': TextDataset,
'onehot': OneHotDataset,
'label': LabelDataset,
'shelve': ShelveDataset,
}[type_.lower()]
Expand Down
58 changes: 0 additions & 58 deletions nmtpytorch/datasets/onehot.py

This file was deleted.

1 change: 0 additions & 1 deletion nmtpytorch/layers/encoders/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from .feature import FeatureEncoder
from .image import ImageEncoder
from .text import TextEncoder
from .bilstmp import BiLSTMp
Expand Down
2 changes: 1 addition & 1 deletion nmtpytorch/models/asr.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ def __init__(self, opts):

# Load vocabularies here
for name, fname in self.opts.vocabulary.items():
self.vocabs[name] = Vocabulary(fname, name=name)
self.vocabs[name] = Vocabulary(fname)

# Inherently non multi-lingual aware
self.src = self.topology.first_src
Expand Down
3 changes: 1 addition & 2 deletions nmtpytorch/models/nmt.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,7 @@ def __init__(self, opts):

# Load vocabularies here
for name, fname in self.opts.vocabulary.items():
self.vocabs[name] = Vocabulary(
fname, name=name, short_list=self.opts.model['short_list'])
self.vocabs[name] = Vocabulary(fname, short_list=self.opts.model['short_list'])

# Inherently non multi-lingual aware
slangs = self.topology.get_src_langs()
Expand Down
2 changes: 1 addition & 1 deletion nmtpytorch/models/stale/acapt.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ def __init__(self, opts):

# Load vocabularies here
for name, fname in self.opts.vocabulary.items():
self.vocabs[name] = Vocabulary(fname, name=name)
self.vocabs[name] = Vocabulary(fname)

# Inherently non multi-lingual aware
tlangs = self.topology.get_trg_langs()
Expand Down
2 changes: 1 addition & 1 deletion nmtpytorch/models/stale/nli.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ def __init__(self, opts):

# Load vocabularies here
for name, fname in self.opts.vocabulary.items():
self.vocabs[name] = Vocabulary(fname, name=name)
self.vocabs[name] = Vocabulary(fname)

def __repr__(self):
s = super().__repr__() + '\n'
Expand Down

0 comments on commit 03d0213

Please sign in to comment.