Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

True/False Questions (Q7-Q11) Its an assignment on Natural language processing (NLP) pls, answer Q7-111 TIA Q7. The output of the following code is 'University'. import

image text in transcribed

True/False Questions (Q7-Q11)

Its an assignment on Natural language processing (NLP)

pls, answer Q7-111

TIA

Q7. The output of the following code is 'University'. import re pattern - 'University' testostring = "Tiangeng University, Tianjin University, Nankai University" result = Franch(pattern, Eestlastring) if neytti print (rezultatus) else: print('no match') Q8. The output of the following code is [] (no match). import re test string ^tian_$' pattern = LIS' result = brefindab (pattern, Gestastring) print (result) 09. The output of the following code is '5678'. import re p = Samrids (r" (\w+) \s\d+[-] \d+[-] (\d+)") result Besarsh ("bai 010-1234-5678") print (result.group.(2)) Q10. The output of the following code is [] (no match). import re test string """Iiangeng University Tianjin University Nankai University result = x bindal ("University$", testing, flags = print (result) E MULTILINE) Q11. The output of the following code is [] (no match). import re testing "" "Tiangeng University Tianjin University Nankai University = result = Erfindad ("university$", testatring, flags = GIGNORECASE) print (result)

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

Step: 3

blur-text-image

Ace Your Homework with AI

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

Get Started

Recommended Textbook for

Automating Access Databases With Macros

Authors: Fish Davis

1st Edition

1797816349, 978-1797816340

Students also viewed these Databases questions

Question

5. Develop a self-management module for a training program.

Answered: 1 week ago