Python Forum
naming entities(city abbreviations)
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
naming entities(city abbreviations)
#1
is there any readymade code for identifying the city name abbreviation??

i have a task which contains P.O Box 1442 Hyderabad .i have to extract city part bot will comme to know if it is "hyderabad" . some times we get string as P.O Box 1442 Hyd /P.O Box 1442 Hydera/P.O Box 1442 Hbd. so how bot will identifies the naming entities??
the city name is keep on changing. i have attached the script also. is it correct or i need more to be added.

Attached Files

.txt   python.txt (Size: 534 bytes / Downloads: 145)
Reply
#2
Difficult. I was going to point you to an airport list but your examples suggest it may be impossible - hyd could be Hyderabad, or could by Hyden Ky in the US. If you can limit to a single country you will have a better chance, but I don't think there is a source for a dictionary of all the possible ways people will shorten the name.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Python Style and Naming Variables rsherry8 3 2,202 Jun-07-2021, 09:30 PM
Last Post: deanhystad
  I have problem with ACO, I want to always start in the first city and end in the last pKKy 0 1,539 Jan-28-2021, 05:58 PM
Last Post: pKKy
  Naming the file as time and date. BettyTurnips 3 2,971 Jan-15-2021, 07:52 AM
Last Post: BettyTurnips
  naming conventions mvolkmann 4 2,137 Sep-28-2020, 05:51 PM
Last Post: Gribouillis
  pytz: get integer utc offset from Olsen region/city h4tt3n 2 5,234 Jul-30-2020, 06:43 AM
Last Post: h4tt3n
  Question about naming variables in class methods sShadowSerpent 1 2,002 Mar-25-2020, 04:51 PM
Last Post: ndc85430
  Dyanmically Naming Files ovidius 3 2,523 Jan-29-2020, 02:44 PM
Last Post: buran
  code for finding a cables crossed the bondary of the city spider_pytthon 8 3,553 Dec-24-2019, 07:23 AM
Last Post: spider_pytthon
  naming images adding to number within multiple functions Bmart6969 0 1,919 Oct-09-2019, 10:11 PM
Last Post: Bmart6969
  Sub: Python-3: Better Avoid Naming A Variable As list ? adt 9 4,007 Aug-29-2019, 08:15 AM
Last Post: adt

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020