Answered step by step
Verified Expert Solution
Question
1 Approved Answer
The scenario: As an NLP practitioner, you are required to develop a system that would assist with automated booking for animal hospital. The impression is
The scenario: As an NLP practitioner, you are required to develop a system that would assist with automated booking for animal hospital. The impression is that the client would sms a free form text message to the hospital with their desired date and the reason for the visit. The proposed system would check for errors, the essence of the message and make the booking with a confirmation feedback or demand for further clarity if necessary.
The following lists the kind of requests the system would have to deal with
I would like to book my cat, Spot, for vaccinations on Tuesday January My name is Andrew James.
Dog Moses check up Michael Smith
Joe Bloggs, horse, Calypso, January blood tests.
This is Peter Parker. I would like to make an appointment for my cat Molly for th January to have her claws trimmed.
Your NLP system should produce messages like those below catSpotvaccinationsJanuaryAndrew James or
Peter ParkercatMollyJanuaryclaws trimmed which can then easily be further processed to makecheck the bookings.
a Regular expressions
i List the various forms that the client could use when they are entering the date. Use typical South African formats or US or other formats. Make sure you think of all possible options and not only the ones listed in the examples.
ii Develop a regular expression to check whether the date is specified in an accept able form.
Take Note: Your regular expression needs to only represent of the formats that you listed above. Be sure to specify which formats you are representing.
You may use either a Python or Perl representation for your regular expressions but be sure to specify which you have used.The scenario: As an NLP practitioner, you are required to develop a system that would assist
with automated booking for animal hospital. The impression is that the client would sms a free
form text message to the hospital with their desired date and the reason for the visit. The
proposed system would check for errors, the essence of the message and make the booking
with a confirmation feedback or demand for further clarity if necessary.
The following lists the kind of requests the system would have to deal with
I would like to book my cat, Spot, for vaccinations on Tuesday January My
name is Andrew James.
Dog Moses check up Michael Smith
Joe Bloggs, horse, Calypso, January blood tests.January to have her claws trimmed.
Your NLP system should produce messages like those below catSpotvaccinations
JanuaryAndrew James or
Peter ParkercatMollyJanuaryclaws trimmed which can then easily be
further processed to makecheck the bookings.
a Regular expressions
i List the various forms that the client could use when they are entering the date. Use typical
South African formats or US or other formats. Make sure you think of all possible options and
not only the ones listed in the examples.
ii Develop a regular expression to check whether the date is specified in an accept able form.
Note: Your regular expression needs to only represent of the formats that you listed above. Be
sure to specify which formats you are representing.
You may use either a Python or Perl representation for your regular expressions but be sure to
specify which you have used.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started