"City" (Text Content Type)
-
See Also
- TextCases
- TextPosition
- TextSentences
- Containing
- CityData
-
- Entity Types
- City
-
- Interpreter Types
- City
- ComputedCity
-
- Text Contents
- Location
- LocationEntity
- Country
- Neighborhood
- MetropolitanArea
- GeographicRegion
- AdministrativeDivision
- ZIPCode
- Related Guides
-
-
See Also
- TextCases
- TextPosition
- TextSentences
- Containing
- CityData
-
- Entity Types
- City
-
- Interpreter Types
- City
- ComputedCity
-
- Text Contents
- Location
- LocationEntity
- Country
- Neighborhood
- MetropolitanArea
- GeographicRegion
- AdministrativeDivision
- ZIPCode
- Related Guides
-
See Also
"City" (Text Content Type)
Text identified as the name of a city.
Details

- "City" can be used in TextCases, TextPosition and TextContents.
- "City" corresponds to any mention of a city (real or not real) in the context of the text.
- Homonyms of cities that are not cities should not be detected as "City" (if the context allows disambiguation).
- TextCases[…,"City""Interpretation"] attempts to return entities of type "City", as Interpreter["City"] does.
- Any specific "City" entity such as can also be used as a content type in TextCases, TextPosition and TextContents.
Examples
Basic Examples (3)
Find occurrences of cities in a text:
Get the result as a list of "City" entities:
A similar result can be obtained by applying Interpreter["City"] to text snippets:
See Also
TextCases TextPosition TextSentences Containing CityData
Entity Types: City
Interpreter Types: City ComputedCity
Text Contents: Location LocationEntity Country Neighborhood MetropolitanArea GeographicRegion AdministrativeDivision ZIPCode