concept path in category nlp

This is an excerpt from Manning's book Natural Language Processing in Action: Understanding, analyzing, and generating text with Python.
You may have heard of tokenizers before, if you took a computer science class where you learned about how compilers work. A tokenizer used for compiling computer languages is often called a scanner or lexer. The vocabulary (the set of all the valid tokens) for a computer language is often called a lexicon, and that term is still used in academic articles about NLP. If the tokenizer is incorporated into the computer language compiler’s parser, the parser is often called a scannerless parser. And tokens are the end of the line for the context-free grammars (CFG) used to parse computer languages. They are called terminals because they terminate a path from the root to the leaf in CFG. You’ll learn more about formal grammars like CFGs and regular expressions in chapter 11 when you will use them to match patterns and extract information from natural language.
You’ll want to record the public IP address for your instance (see figure E.11) alongside the .pem file for the key pair you generated earlier. A good place to store this is in your password manager with the .pem file. You’ll also want to put it within your $HOME/.ssh/config file, so you can give your instance a host name so you don’t have to find the IP address in the future. A typical config file will look something like what is shown in the following listing. You’ll want to change the HostName value to the public IP address (from the EC2 Dashboard) or fully qualified domain name (from your “Route 53” Dashboard on AWS) for your EC2 instance that you just launched. Listing E.1. $HOME/.ssh/config
Host totalgood User ubuntu HostName INSTANCE_PUBLIC_IP 1 Port 22 IdentityFile ~/.ssh/nlp-in-action.pem 2 # ssh -i ~/.ssh/nlp-in-action.pem ubuntu@INSTANCE_PUBLIC_IP 3
- 1 Replace INSTANCE_PUBLIC_IP with your public IP address.
- 2 The path to the .pem file you downloaded goes here.
- 3 You can leave notes as comments in your config file.