Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Given a raw string with a job title, find the clean tittle that matches best (Python pls): 1st: Scoring criteria: Most number of matching words

Given a raw string with a job title, find the clean tittle that matches best (Python pls):

1st: Scoring criteria: Most number of matching words (1st problem)

2nd: Scoring Criteria: Most number of matching letters (2nd problem)

Example 1:

raw_title = "Lead Financial Advisor from New York"

clean_titles = [ "Product Manager", "Chemistry Professor", "Financial Advisor", "Lead Financial Advisor", "Tech Bro", "Finance Bro"]

correct return = "Lead Financial Advisor" (since this one has the most words from the clean title)

Example 2:

raw_title = "Neurologist"

clean_titels = ["Neurobiologist", "Neurosurgeon", "Plastic Disposer", "Software Engineer", "Mechanical Engineer"]

correct return = "Neurobiologist (has the most amount of matching letters)

I would need help with both questions (individually) please, but if can only help with one then with the one of matching words.

Thank you

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

More Books

Students also viewed these Databases questions

Question

KEY QUESTION Refer to columns 1 and 6 in the table for question

Answered: 1 week ago