GithubHelp home page GithubHelp logo

packtpublishing / advanced-nlp-with-tensorflow-2 Goto Github PK

View Code? Open in Web Editor NEW
8.0 4.0 9.0 161.85 MB

Advanced NLP with TensorFlow 2, published by [Packt]

License: MIT License

Jupyter Notebook 99.90% Python 0.10%

advanced-nlp-with-tensorflow-2's Introduction

Advanced Natural Language Processing with TensorFlow 2

2019 has been a watershed moment for NLP with transformer and attention-based networks. This is as transformational for NLP as AlexNet was for computer vision in 2012. Tremendous advances in Natural Language processing have been made in the last couple of years, and we are now moving from research labs into applications. These advances span the domains of Natural Language Understanding (NLU), Natural Language Generation (NLG) and Natural Language Interaction (NLI). With so much research in all of these domains, it can be a daunting task to understand the exciting developments in various domains inside NLP.

This book is focused on cutting edge applications in the fields of natural language processing, language generation, and dialogue systems. It provides the concepts of pre-processing text using techniques such as tokenization, parts of speech tagging, lemmatization, Named Entity Recognition (NER) using popular libraries such as Stanford NLP and SpaCy. Taking a very practical, application-focussed perspective, the book covers key emerging areas such as generating text for use in sentence completion and text summarization, bridging images and text by generating captions for images and answering common sense questions for them, and managing dialogue aspects of chatbots. It covers one of the most important reasons behind recent advances of NLP - transfer learning and fine tuning. Unlabeled textual data is easily available, however labelling this data is costly. This book covers practical techniques that can simplify labeling of textual data.

By the end of the book, the reader will have an advanced knowledge of the tools, techniques and deep learning architectures used to solve complex NLP problems. The book will cover encoder-decoder networks, LSTMs and BiLSTMs, CRFs, BERT, Transformers and other key technology pieces using TensorFlow. They will have working code that can be adapted to their own use cases. We hope that the readers will be able to even do novel state-of-the-art research using the skills gained.

The book uses TensorFlow 2.3 and Keras extensively. Several advanced TensorFlow techniques are also covered such as:

  • Custom learning rate schedules
  • Custom loss functions
  • Custom layers
  • Custom training loops
  • Subword encoding for embeddings
  • tensorflow_datasets package for downloading and managing datasets
  • tf.data.Dataset usage and performance optimization
  • Model checkpointing

The book is organized in the following chapters (with links to code):

  1. Essentials of NLP:
  2. Understanding Sentiment in Natural Language with BiLSTMs
  3. Named Entity Recognition (NER) with BiLSTMs, CRFs and Viterbi Decoding
  4. Transfer Learning with BERT
  5. Generating Text With RNNs and GPT-2
  6. Text Summarization with seq2seq Attention and Transformer Networks
  7. Multi-modal Networks and Im-age Captioning with ResNets and Transformer
  8. Weakly Supervised Learning for Classification with Snorkel
  9. Building Conversational AI Applications with Deep Learning

Seminal papers relevant to the chapter or referenced in the chapter can also be found in the appropriate chapter directory.

Installation

install.md contains all the installation instructions for running the code. The book has been written and tested using Ubuntu 18.04 LTS, with a NVIDIA RTX 3070 GPU running Python 3.7 and TensorFlow 2.3, which was the latest version as of writing.

Author: Ashish Bansal

advanced-nlp-with-tensorflow-2's People

Contributors

packt-itservice avatar packtmrunal avatar sabypackt avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.