I am trying to extract only the City names from a text so I am using geograpy library with python but in the output, some other names have been extracted. Here is my code:
from geograpy.extraction import Extractor
text6 = u"""Some text..."""
e6 = Extractor(text=text6)
e6.find_entities()
print(e6.places)
INPUT TEXT:-
Opposition Leader Mahinda Rajapaksa says that the whole public administration has collapsed due to the constitution council’s arbitrary actions. The Opposition Leader said so in response to a query a journalised raised after a meeting held...
OUTPUT
['Opposition', 'Leader Mahinda Rajapaksa', 'Opposition Leader']
There are no any city names in this text therefore the output shold be empty