Unit Ai 4
Unit Ai 4
NLP:
NLP is a field of computer science, artificial intelligence and linguistics that
studies how humans and computers interact with language.
IS NLP AI or ML?
NLP is a subfield of computer science and artificial intelligence(AI) that uses
machine learning to enable computers to understand and communicate with human
language.
LEXICAL ANALYSIS:
This phase scans the source code as a stream of characters and
converts it into meaningful lexemes.
SYNTACTIC ANALYSIS:
Syntactic analysis is used to check grammar,word arrangements
and shows the relationship among the words.
SEMANTIC ANALYSIS:
Syntactic analysis is concerned with the meaning
representation. It mainly focuses on the literal meaning of
words, phrases and sentences.
DISCOURSE INTEGRATION:
Discourse integration depends upon the sentences that
proceeds it and also invokes the meaning of the sentence
that follow it.
PRAGMATIC ANALYSIS:
It helps you to discover the intended effect by applying a
set of rules that characterize cooperative dialogues.
ADVANTAGES OF NLP:
NLP helps users to ask questions about any subject and
get a direct response within seconds.
Semantic Analysis
Retrival based QA: Finding and returning the most relevant text
passage in response to a query.
“cat” as a noun
“sat” as a verb
“on” as a preposition
“mat” as a noun
It would also involve understanding that “cat” is the subject of the sentence and
“mat” is the object.
2. Sentiment analysis:
Identifying the relationships between words and phrases helps
determine the sentiment of a text.
3. Question answering:
Syntactic processing helps identify the relationships between
entities and actions in a text.
4. Text summarization:
Understanding the syntactic structure of a text helps identify the most
important information.
EXAMPLE:
2. Question Answering:
Semantic analysis helps answer complex questions by identifying
relevant information and relationships in text.
3. Text Summarization:
Semantic analysis summarizes long documents by extracting key
concepts and relationships.
4. Sentiment Analysis:
It determines the sentiment and emotional tone behind text, such
as detecting positive or negative opinions.
6. Relationship Extraction:
Semantic analysis identifies relationships between entities, such
as "person A is a colleague of person B".
For example: red, blue, and green are all hyponyms of color, their hypernym.
Meronomy:
Polysemy:
o It refers to a word having more than one meaning.
However, it is represented under one entry.
For example: the term ‘dish’ is a noun. In the sentence, ‘arrange the dishes
on the shelf,’ the word dishes refers to a kind of plate.
Synonyms:
Antonyms:
Relationship extraction
EXAMPLE:
RELATIONSHIP EXTRACTION:
It determine the semantic relationship between words in a text. In this,
relationship include various entities such as an individuals name,place, company,
designation, etc.,
EXAMPLE:
1. Parallel processing:
It using multiple processing units to perform tasks
simultaneously, mimicking the brain's parallel processing capabilities.
2. Distributed processing:
GOALS:
Scalability:
Real-time processing:
Enable real-time interaction and feedback.
APPLICATIONS:
Cognitive architectures:
Neural networks:
Multi-agent systems:
Human-computer interaction:
BENEFITS:
Improved scalability and flexibility
CHALLENGES:
Complexity:
Managing and coordinating parallel and distributed processes
Communication:
Ensuring efficient data exchange between processing units.
Synchronization:
Coordinating tasks and maintaining consistency across processing
units
Scalability:
Adapting to large-scale problems and datasets
Interpretability:
Understanding and explaining complex AI models and behaviors.
PARALLELISM:
1. Task parallelism: Dividing a reasoning task into smaller sub-tasks and
executing them concurrently.
BENEFITS:
1. Scalability: Handle large-scale reasoning tasks and knowledge bases.
2. Efficiency: Reduce processing time through concurrent execution.
3. Flexibility: Adapt to changing environments and requirements.
APPLICATIONS:
1. Artificial intelligence: Enhance reasoning capabilities in AI systems.
2. Expert systems: Improve performance and scalability in expert systems.
3. Multi-agent systems: Enable distributed reasoning and decision-making.
CHALLENGES:
1. Coordination and communication: Manage data exchange and
synchronization.
This model is inspired by the structure and function of the brain and is often
used to describe the processing of information in neural networks.
KEY FEATURES:
HOPEFIELD NETWORKS
Hopfield networks are a type of recurrent artificial neural network that serve
as a content-addressable ("associative") memory system with binary
threshold nodes.
They are a simple example of a neural network that can store and recall
memories.
CHARACTERISTICS OF HOPEFIELD NETWORK:
Recurrent: Hopfield networks have feedback connections, which
allow the network to settle into a stable state.
Storage: The network stores the patterns in its weights and biases.
NEURAL NETWORKS:
A Neural networks is a machine learning model inspired by the structure and
function of the human brain. It consists of layers of interconnected nodes on
“neurons”. Which process and transmit information.
Input layer : Receives the data to be proceed.
Speech recognition
Predictive analysis.
In this ANN, the data or the input provided travels in a single direction.
It enters into the ANN through the input layer and exits through the output
layer while hidden layers may or may not exist.
But a CNN has one or more than one convolutional layer that uses a
convolution operation on the input and then passes the result obtained in the
form of output to the next layer.
The advantage of this modular neural network is that it breaks down a large
and complex computational process into smaller components, thus
decreasing its complexity while still obtaining the required output.
Radial basis function Neural Network:
Radial basis functions are those functions that consider the distance of a
point concerning the center.
RBF functions have two layers. In the first layer, the input is mapped into all
the Radial basis functions in the hidden layer and then the output layer
computes the output in the next step.
Radial basis function nets are normally used to model the data that
represents any underlying trend or function.
The first layer in the RNN is quite similar to the feed-forward neural
network and the recurrent neural network starts once the output of the first
layer is computed.
After this layer, each unit will remember some information from the
previous step so that it can act as a memory cell in performing computations.