Re:A note to Google recruiters (and on Google hiring practices)
by drats on Sunday July 24, 2011 @07:34PM
(#2800654)
Someone's down-voted you without explanation, which is rather poor form. Entities in this case means extracting the text of the page - with nokogiri for example, or a variant of readability to get just the article - and then extracting things that are named in that text.
I used a modded version of readability and a simple entity extractor in python on the article and got: 'Sudoku', 'Search', 'Google', 'SRE', 'Stanford', 'Freebase', 'OpenCalais', 'SWE', 'Metaweb', 'MIT', 'Wrong', 'HTML', 'Developer Relations', 'Interest', 'DON', 'True', 'CPU'.
A great introduction to all this is the O'Reilly book Natural Language Processing with Python (free online[1]).
Re:A note to Google recruiters (and on Google hiring practices)
by zwily on Sunday July 24, 2011 @09:31PM
(#2800932)
I would have assumed they were asking about HTML entities. Like &, etc.
Re:A note to Google recruiters (and on Google hiring practices)
by nostrademons on Sunday July 24, 2011 @11:54PM
(#2801251)
A bunch of people assumed that, but it doesn't make sense given Skud's background at Metaweb and her reference to OpenCalais.
Re:A note to Google recruiters (and on Google hiring practices)
by danieldk on Monday July 25, 2011 @04:52AM
(#2801855)
2b) - i could write a litte parser (potentially much faster)
Since XML entity references can be described with a regular language, there is an equivalent deterministic finite state acceptor. So, any parser you will write, will probably be slower.
Anyway, I think that the interviewer referred to named entity recognition.
1) i would generally not implement that myself -- i like ruby-land's nokigiri for this -- but
2) i can think of some ways how to implement that if i had (time+incentive) to do so:
2a) - i could use regexps (easy to code)
2b) - i could write a litte parser (potentially much faster)
3) in case you want me to write the algorithm i will pick the regexps for sake of brevity