Question: 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)

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!