"Ship" (Text Content Type)
-
See Also
- TextCases
- TextPosition
- TextSentences
- Containing
-
- Entity Types
- Ship
-
- Interpreter Types
- Ship
- ComputedShip
-
- Text Contents
- Aircraft
- Airline
- Airport
- Ocean
- Lake
- River
- Shipwreck
- Related Guides
-
-
See Also
- TextCases
- TextPosition
- TextSentences
- Containing
-
- Entity Types
- Ship
-
- Interpreter Types
- Ship
- ComputedShip
-
- Text Contents
- Aircraft
- Airline
- Airport
- Ocean
- Lake
- River
- Shipwreck
- Related Guides
-
See Also
"Ship" (Text Content Type)
Text identified as the name of a ship.
Details
- "Ship" can be used in TextCases, TextPosition and TextContents.
- "Ship" corresponds to any mention of a ship (real or not real) in the context of the text.
- Homonyms of ships that are not ships should not be detected as "Ship" (if the context allows disambiguation).
- TextCases[…,"Ship""Interpretation"] attempts to return entities of type "Ship", as Interpreter["Ship"] does.
- Any specific "Ship" entity such as
can also be used as a content type in TextCases, TextPosition and TextContents.
Examples
Basic Examples (3)
Find occurrences of ships in a text:
TextCases["Two days earlier, on 13 October, the Takow forts had been bombarded and silenced by the Japanese cruisers Yoshino, Naniwa, Akitsushima, Hiei, Yaeyama and Saien, and a naval landing force had been put ashore to occupy the town.", "Ship"]Get the result as a list of "Ship" entities:
TextCases["Two days earlier, on 13 October, the Takow forts had been bombarded and silenced by the Japanese cruisers Yoshino, Naniwa, Akitsushima, Hiei, Yaeyama and Saien, and a naval landing force had been put ashore to occupy the town.", "Ship" -> "Interpretation", VerifyInterpretation -> True]A similar result can be obtained by applying Interpreter["Ship"] to text snippets:
Interpreter["Ship"][{"Yoshino", "Naniwa", "Hiei"}]Get properties about occurrences of ships:
TextContents["Two days earlier, on 13 October, the Takow forts had been bombarded and silenced by the Japanese cruisers Yoshino, Naniwa, Akitsushima, Hiei, Yaeyama and Saien, and a naval landing force had been put ashore to occupy the town.", "Ship", All]Find mentions of Yoshino in a text:
TextContents["On 15 October Nogi's column closed in on the important port of Takow (Kaohsiung), but discovered that the Japanese navy had beaten it to the punch. Two days earlier, on 13 October, the Takow forts had been bombarded and silenced by the Japanese cruisers Yoshino, Naniwa, Akitsushima, Hiei, Yaeyama and Saien, and a naval landing force had been put ashore to occupy the town.", Entity["Ship", "JapaneseCruiserYoshino::9k97s"]]See Also
TextCases TextPosition TextSentences Containing
Entity Types: Ship
Interpreter Types: Ship ComputedShip
Text Contents: Aircraft Airline Airport Ocean Lake River Shipwreck