4 ms·
> nlp.text('i want to go to sydney.').places()[0].city 'Sydney' > nlp.text('tony hawk did a kickflip.').people()[0].text 'tony' So in the first case, it
by atomwaffel 10y ago
> nlp.text('i want to go to sydney.').places()[0].city
'Sydney'
> nlp.text('tony hawk did a kickflip.').people()[0].text
'tony'
So in the first case, it clearly does recognise that Sydney is a city independent of capitalisation. In the second case, it does recognise the first name but not the last, instead tagging "hawk" as a noun. The same happens with "john smith", however "john thomas" is recognised as a full name.
- mpjme 10y agoTo be fair, I think that my grandmother, not familiar with gaming/skating celebs, would tag it the same way.