Answered step by step
Verified Expert Solution
Link Copied!

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 10 January 2023. My name is Andrew James.
Dog Moses check up 2023/01/24 Michael Smith
Joe Bloggs, horse, Calypso, 25 January 2023, blood tests.
This is Peter Parker. I would like to make an appointment for my cat Molly for 25th January 2023 to have her claws trimmed.
Your NLP system should produce messages like those below [[cat][Spot]][vaccinations][[12][January][2023]][Andrew James] or
[Peter Parker][[cat][Molly]][[25][January][2023]][claws trimmed] which can then easily be further processed to make/check 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 4 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 10 January 2023. My
name is Andrew James.
Dog Moses check up 2023/01/24 Michael Smith
Joe Bloggs, horse, Calypso, 25 January 2023, blood tests.January 2023 to have her claws trimmed.
Your NLP system should produce messages like those below [[cat][Spot]][vaccinations][[12]
[January][2023]][Andrew James] or
[Peter Parker][[cat][Molly]][[25][January][2023]][claws trimmed] which can then easily be
further processed to make/check 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 4 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.
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions

Question

Evaluate the importance of diversity in the workforce.

Answered: 1 week ago

Question

Identify the legal standards of the recruitment process.

Answered: 1 week ago