-
See Also
- TextCases
- TextPosition
- TextSentences
- Containing
-
- Interpreter Types
- Location
- ComputedLocation
- GeoCoordinates
-
- Text Contents
- LocationEntity
- AdministrativeDivision
- Airport
- AmusementPark
- AmusementParkRide
- AstronomicalObservatory
- Beach
- Bridge
- Building
- Canal
- Castle
- Cave
- Cemetery
- City
- Country
- Dam
- DeepSpaceProbe
- Desert
- EarthImpact
- Forest
- GeographicRegion
- HistoricalCountry
- HistoricalSite
- Island
- Lake
- LibraryBranch
- LibrarySystem
- MetropolitanArea
- Mine
- Mountain
- Museum
- Neighborhood
- NuclearExplosion
- NuclearReactor
- NuclearTestSite
- Ocean
- OilField
- Park
- ParticleAccelerator
- PrivateSchool
- PublicSchool
- Reef
- ReserveLand
- SchoolDistrict
- Shipwreck
- SolarSystemFeature
- Stadium
- Tunnel
- UnderseaFeature
- University
- USCongressionalDistrict
- Volcano
- Waterfall
- Related Guides
-
-
See Also
- TextCases
- TextPosition
- TextSentences
- Containing
-
- Interpreter Types
- Location
- ComputedLocation
- GeoCoordinates
-
- Text Contents
- LocationEntity
- AdministrativeDivision
- Airport
- AmusementPark
- AmusementParkRide
- AstronomicalObservatory
- Beach
- Bridge
- Building
- Canal
- Castle
- Cave
- Cemetery
- City
- Country
- Dam
- DeepSpaceProbe
- Desert
- EarthImpact
- Forest
- GeographicRegion
- HistoricalCountry
- HistoricalSite
- Island
- Lake
- LibraryBranch
- LibrarySystem
- MetropolitanArea
- Mine
- Mountain
- Museum
- Neighborhood
- NuclearExplosion
- NuclearReactor
- NuclearTestSite
- Ocean
- OilField
- Park
- ParticleAccelerator
- PrivateSchool
- PublicSchool
- Reef
- ReserveLand
- SchoolDistrict
- Shipwreck
- SolarSystemFeature
- Stadium
- Tunnel
- UnderseaFeature
- University
- USCongressionalDistrict
- Volcano
- Waterfall
- Related Guides
-
See Also
"Location" (Text Content Type)
Details
- "Location" can be used in TextCases, TextPosition and TextContents.
- "Location" corresponds to any mention of an entity that can be pinpointed to a location, such as cities, countries, mountains, buildings, etc.
- TextCases[…,"Location""Interpretation"] attempts to return a GeoPosition object.
- The only difference between "Location" and "LocationEntity" is that the latter returns Entity[…] instead of GeoPosition[…] for the property "Interpretation".
Examples
Basic Examples (2)
Find all entities with a location in a text:
TextCases["The Sagrada Familia is a famous cathedral in Barcelona, in Spain", "Location"]Get the locations of these entities:
TextCases["The Sagrada Familia is a famous cathedral in Barcelona, in Spain", "Location" -> "Interpretation"]When the location of an entity in unknown, the original string is returned instead of a GeoPosition object:
TextCases["Belgium, France, Italy, Luxembourg, the Netherlands, and West Germany were the first states of the European Union", "Location" -> Function[#String -> #Interpretation]]TextContents["Belgium, France, Italy, Luxembourg, the Netherlands, and West Germany were the first states of the European Union", "Location", All]Entities with an unknown location can be filtered out using option VerifyInterpretation:
TextContents["Belgium, France, Italy, Luxembourg, the Netherlands, and West Germany were the first states of the European Union", "Location", VerifyInterpretation -> True]See Also
TextCases TextPosition TextSentences Containing
Interpreter Types: Location ComputedLocation GeoCoordinates
Text Contents: LocationEntity AdministrativeDivision Airport AmusementPark AmusementParkRide AstronomicalObservatory Beach Bridge Building Canal Castle Cave Cemetery City Country Dam DeepSpaceProbe Desert EarthImpact Forest GeographicRegion HistoricalCountry HistoricalSite Island Lake LibraryBranch LibrarySystem MetropolitanArea Mine Mountain Museum Neighborhood NuclearExplosion NuclearReactor NuclearTestSite Ocean OilField Park ParticleAccelerator PrivateSchool PublicSchool Reef ReserveLand SchoolDistrict Shipwreck SolarSystemFeature Stadium Tunnel UnderseaFeature University USCongressionalDistrict Volcano Waterfall