Skip to content

Instantly share code, notes, and snippets.

@NMZivkovic
Last active June 14, 2020 04:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save NMZivkovic/a2a47cc8bbabf7d10e4f4c4accdd92c1 to your computer and use it in GitHub Desktop.
Save NMZivkovic/a2a47cc8bbabf7d10e4f4c4accdd92c1 to your computer and use it in GitHub Desktop.
tfds.core.DatasetInfo(
name='ted_hrlr_translate',
version=0.0.1,
description='Data sets derived from TED talk transcripts for comparing similar language pairs
where one is high resource and the other is low resource.
',
urls=['https://github.com/neulab/word-embeddings-for-nmt'],
features=Translation({
'en': Text(shape=(), dtype=tf.string),
'ru': Text(shape=(), dtype=tf.string),
}),
total_num_examples=218387,
splits={
'test': 5476,
'train': 208106,
'validation': 4805,
},
supervised_keys=('ru', 'en'),
citation="""@inproceedings{Ye2018WordEmbeddings,
author = {Ye, Qi and Devendra, Sachan and Matthieu, Felix and Sarguna, Padmanabhan and Graham, Neubig},
title = {When and Why are pre-trained word embeddings useful for Neural Machine Translation},
booktitle = {HLT-NAACL},
year = {2018},
}""",
redistribution_info=,
)
@niteshjindal-7
Copy link

While running above code, it gives below error:

NameError Traceback (most recent call last)
in ()
4 description='Data sets derived from TED talk transcripts for comparing similar language pairs where one is high resource and the other is low resource.',
5 urls=['https://github.com/neulab/word-embeddings-for-nmt'],
----> 6 features=Translation({
7 'en': Text(shape=(), dtype=tf.string),
8 'ru': Text(shape=(), dtype=tf.string),

NameError: name 'Translation' is not defined

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment