Answered step by step
Verified Expert Solution
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
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
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