Regular Expressions, Text Normalization, Edit Distance ... · Make RE (Pattern and matches Table)...
Transcript of Regular Expressions, Text Normalization, Edit Distance ... · Make RE (Pattern and matches Table)...
-
Regular Expressions, Text Normalization, Edit Distance
(Assignment-1)
@Copyrights: Natural Language Processing (NLP) Organized by Dr. Ahmad Jalal (http://portals.au.edu.pk/imc/)
How to make RE as disjunction.
therefore; cooking;
How to set RE as range.
Rupee 5 is an old Note;
Write a negation of following.
research methodology;
Insert ? in RE.
patt?ern; previou?s;
How we can implement all below regular expressions in Python?
HINT: For reference; Chapter 3 of [Book: Natural language processing with Python,
Steven Bird] is needed to considered.
Insert * in RE.
be!; Ash!; hi!
Insert + in RE.
ops!; Oray!; Wao!
Insert . in RE.
run; made;
Apply \b over true and false cases of RE at
following senstences.
99 percent efficient.
50 pound currency.
-
Make RE (Pattern and matches Table) for
( | ) as prefix and suffix.
conform;
ever;
Make RE for Kleen star and parenthesis.
AdmissionID Ab12 AdmissionID Cd34
AdmissionID Ef56;
Apply Greedy and non Greedy enforcement
over.
It’s stated that;
Heavens are in blue sky.
Apply 5 different cases of RE over
following words expression.
he;
most;
Write a regular expression during web
searching.
The cloth must be Rs2999.99 with 5.4 Ht
and 18.5 Wd.
The car has 6498 cc, 770.343Hp,
1525Kg, 0-100km/h: 2.8s
@Copyrights: Natural Language Processing (NLP) Organized by Dr. Ahmad Jalal (http://portals.au.edu.pk/imc/)
Regular Expressions, Text Normalization, Edit Distance
(Assignment-1)
How we can implement all below regular expressions in Python?