Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
Like finding a name in a sentence? I don't see any way to do that without the possibility to be fooled easily. Maybe with a huge list of names as a whitelist for words?
-
okay, additional piece of info: assume western-style/locale names, meaning no chinese/japanese/arab, nothing like that.
-
@AndSoWeCode algorithm i have in mind/my solution to this question would have no problem recognizing "Alexander Siddig" as a person's name ;)
just curious what other people can come up with/looking for improvement if anyone has a better idea, and doing it in the form of a riddle/puzzle instead of outright describing my solution, to make it more fun ;) -
@Midnigh-shcode Google pattern matching.
I think c# String's Indexof pattern matching function is pretty good. Src is open.
Just Java sucks at it. -
It's quite easy. All you have to do is develop an AI that uses Machine Learning to identify the correct part of a sentence, then train it on millions and millions of annotated examples. For higher accuracy, use a separate instance per language.
-
@scholl3ss this wasn't request for help, this was "i wonder what ideas other people might come up".
any specific regex pattern you would use? -
@configurator everyone gets a neural network these days, don't they? =D
give me a more interesting and handcrafted solution ;) -
@Midnigh-shcode well given that it's a question about understanding natural language that's the most suitable technology.

describe logic/algorithm you would use to detect a (presence of) full name in a string. goals: obvious == Most reliable, hardest to fool, least false positives, as generic as possible ( == as few hardcoded data as possible)
question