concept practice in category nlp

appears as: practice, practices
Real-World Natural Language Processing

This is an excerpt from Manning's book Real-World Natural Language Processing.

You may be wondering where those numbers come from in practice. These numbers are actually “learned” using some machine learning algorithms and a large text dataset. We’ll discuss this further in Chapter 3.

After combining, the scores match the desired outcomes exactly. All we did so far was to design kernels that match the patterns we want to detect and then simply combine the scores. Compare this to the RNN example we worked on in section 4.1.3, where we needed to use some complicated numeric computation to derive the parameters. Hopefully this example is enough to show you how simple and powerful CNNs can be for text classification!

Getting Started with Natural Language Processing

This is an excerpt from Manning's book Getting Started with Natural Language Processing.

The code above uses a very simple representation of a document focusing on the key words only: you can assume that there are more words instead of dots, and you’ll see more realistic examples later in this book. In addition, this code assumes that each bit of the string between the whitespaces is a word. In practice, properly detecting words in texts is not as simple as this: we’ll talk about that later in the book and we’ll be using a special tool – tokenizer – for that, but splitting by whitespaces is a brute-force strategy good enough for our purposes here.

Now that you are familiar with the ideas behind classification tasks, you are all set to implement your first NLP classification algorithm in practice. Before you move on, test your understanding of the task with the exercise below.

Natural Language Processing in Action: Understanding, analyzing, and generating text with Python

This is an excerpt from Manning's book Natural Language Processing in Action: Understanding, analyzing, and generating text with Python.

  • Grokking Deep Learning, by Andrew Trask (Manning, 2017), is a broad overview of deep learning models and practices.
  • In practice

    How does this work in practice then? Exactly like the simple RNN from the last chapter. All you’ve changed is the inner workings of the black box that’s a recurrent layer in the network. So you can just swap out the Keras SimpleRNN layer for the Keras LSTM layer, and all the other pieces of your classifier will stay the same.