Skip to main content
Join the official 2019 Python Developers SurveyStart the survey!

A dataset utils repository based on For tensorflow 2.x only!

Project description


A dataset utils repository based on For tensorflow>=2.0 only!


  • python 3.6
  • tensorflow>=2.0


pip install nlp-datasets


seq2seq models

from nlp_datasets import XYSameFileDataset
from nlp_datasets import SpaceTokenizer

tokenizer = SpaceTokenizer()
corpus_files = ['/path/to/corpus']
tokenizer.build_from_corpus(corpus_files, max_vocab_size=10000)
dataset = XYSameFileDataset(x_tokenizer=tokenizer, y_tokenizer=tokenizer, config=None)
train_files = ['/path/to/train/files']
train_dataset = dataset.build_train_dataset(train_files=train_files)

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for nlp-datasets, version 1.2.1
Filename, size File type Python version Upload date Hashes
Filename, size nlp_datasets-1.2.1-py3-none-any.whl (16.3 kB) File type Wheel Python version py3 Upload date Hashes View hashes
Filename, size nlp_datasets-1.2.1.tar.gz (7.7 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page