Natural Language Processing - NLP
Natural Langauge Processing - NLP for Healthcare, Life Sciences, Pharmaceuticals and Biopharmaceuticals organizations.
Natural Language Processing - NLP is the ability of a computer program to understand Human Language as it is Spoken and Written; referred to as Natural Language. It is a component of Artificial Intelligence - AI.
NLP has existed for more than 50 years and has roots in the field of Linguistics. It has a variety of Real-World Applications in a number of fields, including Medical Research, Healthcare, Life Sciences, Data Science, Search Engines and Business Intelligence.
How does Natural Language Processing Work?
NLP enables computers to understand Natural Language as Humans do. Whether the language is Spoken or Written, Natural Language Processing uses Artificial Intelligence - AI to take Real-World input, process it, and make sense of it in a way a computer can understand. Just as Humans have different sensors -- such as ears to hear and eyes to see -- computers have programs to read and microphones to collect audio. And just as Humans have a Brain to process that input, computers have a program to process their respective inputs. At some point in processing, the input is converted to code that the computer can understand.
There are two main phases to Natural Language Processing - NLP:
- Data Preprocessing
- Algorithm Development
Data Preprocessing involves preparing and "cleaning" text data for machines to be able to analyze it. Preprocessing puts data in workable form and highlights features in the text that an algorithm can work with.
There are several ways this can be done, including:
This is when text is broken down into smaller units to work with.
Stop Word Removal:
This is when common words are removed from text so unique words that offer the most information about the text remain.
Lemmatization and Stemming:
This is when words are reduced to their root forms to process.
This is when words are marked based on the part-of speech they are -- such as nouns, verbs and adjectives.
Once the data has been preprocessed, an algorithm is developed to process it. There are many different Natural Language Processing - NLP algorithms, but two main types are commonly used:
This system uses carefully designed linguistic rules. This approach was used early on in the development of Natural Language Processing, and is still used.
Machine Learning-Based System:
Machine Learning - ML algorithms use statistical methods. They learn to perform tasks based on training data they are fed, and adjust their methods as more data is processed. Using a combination of Machine Learning, Deep Learning and Artificial Neural Networks, Natural Language Processing - NLP algorithms hone their own rules through repeated processing and learning.
Why is Natural Language Processing - NLP important?
Businesses use massive quantities of unstructured, text-heavy data and need a way to efficiently process it. A lot of the information created online and stored in databases is Natural Human Language, and until recently, businesses could not effectively analyze this data. This is where Natural Language Processing - NLP is useful.
The advantage of Natural Language Processing - NLP can be seen when considering the following two statements:
"Cloud computing insurance should be part of every service-level agreement," and, "A good SLA ensures an easier night's sleep -- even in the cloud." If a user relies on Natural Language Processing for search, the program will recognize that cloud computing is an entity, that cloud is an abbreviated form of cloud computing and that SLA is an industry acronym for service-level agreement.
These are the types of vague elements that frequently appear in Human language and that machine learning algorithms have historically been bad at interpreting. Now, with improvements in deep learning and Machine Learning - ML methods, algorithms can effectively interpret them. These improvements expand the breadth and depth of data that can be analyzed.
Techniques and methods of Natural Language Processing - NLP:
Syntax and Semantic Analysis are two main techniques used with Natural Language Processing - NLP. Syntax is the arrangement of words in a sentence to make grammatical sense. NLP uses syntax to assess meaning from a language based on grammatical rules.
Syntax techniques include:
This is the grammatical analysis of a sentence. Example: A natural language processing algorithm is fed the sentence, "The dog barked." Parsing involves breaking this sentence into parts of speech -- i.e., dog = noun, barked = verb. This is useful for more complex downstream processing tasks.
This is the act of taking a string of text and deriving word forms from it. Example: A person scans a handwritten document into a computer. The algorithm would be able to analyze the page and recognize that the words are divided by white spaces.
This places sentence boundaries in large texts. Example: A natural language processing algorithm is fed the text, "The dog barked. I woke up." The algorithm can recognize the period that splits up the sentences using sentence breaking.
This divides words into smaller parts called morphemes. Example: The word untestably would be broken into [[un[[test]able]]ly], where the algorithm recognizes "un," "test," "able" and "ly" as morphemes. This is especially useful in machine translation and speech recognition.
This divides words with inflection in them to root forms. Example: In the sentence, "The dog barked," the algorithm would be able to recognize the root of the word "barked" is "bark." This would be useful if a user was analyzing a text for all instances of the word bark, as well as all of its conjugations. The algorithm can see that they are essentially the same word even though the letters are different.
Semantics involves the use of and meaning behind words. Natural Language Processing - NLP applies algorithms to understand the meaning and structure of sentences. Semantics techniques include:
Word Sense Disambiguation:
This derives the meaning of a word based on context. Example: Consider the sentence, "The pig is in the pen." The word pen has different meanings. An algorithm using this method can understand that the use of the word pen here refers to a fenced-in area, not a writing implement.
Named Entity Recognition:
This determines words that can be categorized into groups. Example: An algorithm using this method could analyze a news article and identify all mentions of a certain company or product. Using the semantics of the text, it would be able to differentiate between entities that are visually the same. For instance, in the sentence, "Daniel McDonald's son went to McDonald's and ordered a Happy Meal," the algorithm could recognize the two instances of "McDonald's" as two separate entities -- one a restaurant and one a person.
Natural Language Generation - NLG:
This uses a database to determine semantics behind words and generate new text. Example: An algorithm could automatically write a summary of findings from a business intelligence platform, mapping certain words and phrases to features of the data in the Business Intelligence - BI platform. Another example would be automatically generating news articles or tweets based on a certain body of text used for training.
Current approaches to Natural Language Processing - NLP are based on Deep Learning, a type of Artificial Intelligence - AI that examines and uses patterns in data to improve a program's understanding. Deep Learning models require massive amounts of labeled data for the Natural Language Processing algorithm to train on and identify relevant correlations, and assembling this kind of big data set is one of the main hurdles to Natural Language Processing - NLP.
Earlier approaches to Natural Language Processing - NLP involved a more rules-based approach, where simpler Machine Learning - ML algorithms were told what words and phrases to look for in text and given specific responses when those phrases appeared. But Deep Learning is a more flexible, intuitive approach in which algorithms learn to identify speakers' intent from many examples -- almost like how a child would learn Human language.
Three tools used commonly for Natural Language Processing - NLP include Natural Language Toolkit (NLTK), Gensim and Intel Natural Language Processing Architect. NLTK is an open Source Python module with data sets and tutorials. Gensim is a Python library for topic modeling and document indexing. Intel NLP Architect is another Python library for Deep Learning typologies and techniques.
What is Natural Language Processing - NLP used for?
Some of the main functions that Natural Language Processing - NLP algorithms perform are:
This involves assigning tags to texts to put them in categories. This can be useful for sentiment analysis, which helps the Natural Language Processing - NLP algorithm determine the sentiment, or emotion behind a text. For example, when brand A is mentioned in X number of texts, the algorithm can determine how many of those mentions were positive and how many were negative. It can also be useful for intent detection, which helps predict what the speaker or writer may do based on the text they are producing.
This involves automatically summarizing text and finding important pieces of data. One example of this is keyword extraction, which pulls the most important words from the text, which can be useful for Search Engine Optimization - SEO. Doing this with Natural Language Processing requires some programming -- it is not completely automated. However, there are plenty of simple keyword extraction tools that automate most of the process -- the user just has to set parameters within the program. For example, a tool might pull out the most frequently used words in the text. Another example is named entity recognition, which extracts the names of people, places and other entities from text.
This is the process by which a computer translates text from one language, such as English, to another language, such as French, without Human intervention.
Natural Language Generation - NLG
This involves using Natural Language Processing - NLP algorithms to analyze unstructured data and automatically produce content based on that data. One example of this is in language models such as GPT3, which are able to analyze an unstructured text and then generate believable articles based on the text.
The functions listed above are used in a variety of Real-World Applications, including:
Customer Feedback Analysis:
Where Artificial Intelligence - AI analyzes Social Media reviews;
Customer Service Automation:
Where Voice Assistants on the other end of a customer service phone line are able to use speech recognition to understand what the customer is saying, so that it can direct the call correctly;
Using tools such as Google Translate, Bing Translator and Translate Me;
Academic Research and Analysis:
Where Artificial Intelligence - AI is able to analyze huge amounts of academic material and research papers not just based on the metadata of the text, but the text itself;
Analysis and Categorization of Medical Records:
- Where Artificial Intelligence - AI uses insights to predict, and ideally prevent, disease;
- Word Processors used for Plagiarism and Proofreading:
- Using tools such as Grammar and Microsoft Word;
- Stock Forecasting and insights into Financial Trading:
- Using Artificial Intelligence - AI to analyze Market history and 10-K documents, which contain comprehensive summaries about a company's financial performance;
- Talent Recruitment in Human Resources - HR;
- Automation of Routine Litigation Tasks in Legal Practices and the Law / Legal field
Research being done on Natural Language Processing - NLP revolves around search, especially enterprise search. This involves having users query data sets in the form of a question that they might pose to another person. The machine interprets the important elements of the Human language sentence, which correspond to specific features in a data set, and returns an answer.
NLP can be used to interpret free, unstructured text and make it analyzable. There is a tremendous amount of information stored in free text files, such as patients' Electronic Medical Records - EMR and Electronic Health Records - EHR. Before Deep Learning-based NLP models, this information was inaccessible to computer-assisted analysis and could not be analyzed in any systematic way. With NLP analysts can sift through massive amounts of free text to find relevant information.
Sentiment Analysis is another primary use case for NLP. Using sentiment analysis, data scientists can assess comments on social media to see how their business's brand is performing, or review notes from customer service teams to identify areas where people want the business to perform better.
Benefits of Natural Language Processing - NLP.
The main benefit of NLP is that it improves the way Humans and computers communicate with each other. The most direct way to manipulate a computer is through code -- the computer's language. By enabling computers to understand Human language, interacting with computers becomes much more intuitive for Humans.
Other Benefits of Natural Language Processing - NLP include:
- Improved accuracy and efficiency of documentation;
- Ability to automatically make a readable summary of a larger, more complex original text;
- Useful for personal assistants such as Alexa, by enabling it to understand spoken word;
- Enables an organization to use chatbots for customer support;
- Easier to perform sentiment analysis;
- Provides advanced insights from analytics that were previously unreachable due to data volume.
Challenges of Natural Language Processing - NLP:
There are a number of challenges of natural language processing and most of them boil down to the fact that natural language is ever-evolving and always somewhat ambiguous. They include:
Computers traditionally require Humans to "speak" to them in a programming language that is precise, unambiguous and highly structured -- or through a limited number of clearly enunciated voice commands. Human speech, however, is not always precise; it is often ambiguous and the linguistic structure can depend on many complex variables, including slang, regional dialects and social context.
Tone of Voice and Inflection
Natural Language Processing - NLP has not yet been perfected. For example, semantic analysis can still be a challenge. Other difficulties include the fact that the abstract use of language is typically tricky for programs to understand. For instance, Natural Language Processing - NLP does not pick up sarcasm easily. These topics usually require understanding the words being used and their context in a conversation. As another example, a sentence can change meaning depending on which word or syllable the speaker puts stress on. NLP algorithms may miss the subtle, but important, tone changes in a person's voice when performing speech recognition. The tone and inflection of speech may also vary between different accents, which can be challenging for an algorithm to parse.
Evolving use of Human Language
Natural Language Processing - NLP is also challenged by the fact that language -- and the way people use it -- is continually changing. Although there are rules to language, none are written in stone, and they are subject to change over time. Hard computational rules that work now may become obsolete as the characteristics of Real-World language change over time.