"Surname" (Text Content Type)
-
See Also
- TextCases
- TextPosition
- TextSentences
- Containing
-
- Entity Types
- Surname
-
- Interpreter Types
- Surname
- ComputedSurname
-
- Text Contents
- GivenName
- PersonTitle
- Person
- Language
- Religion
- Country
- Related Guides
-
-
See Also
- TextCases
- TextPosition
- TextSentences
- Containing
-
- Entity Types
- Surname
-
- Interpreter Types
- Surname
- ComputedSurname
-
- Text Contents
- GivenName
- PersonTitle
- Person
- Language
- Religion
- Country
- Related Guides
-
See Also
"Surname" (Text Content Type)
Text identified as the name of a surname expressed in natural language.
Details
- "Surname" can be used in TextCases, TextPosition and TextContents.
- "Surname" corresponds to any mention of a surname (real or not real) in the context of the text.
- Homonyms of surnames that are not surnames should not be detected as "Surname" (if the context allows disambiguation).
- TextCases[…,"Surname""Interpretation"] attempts to return entities of type "Surname", as Interpreter["Surname"] does.
- Any specific "Surname" entity such as
can also be used as a content type in TextCases, TextPosition and TextContents.
Examples
Basic Examples (3)
Find occurrences of surnames in a text:
TextCases["In 2009, Keys approached Clive Davis for permission to submit a song for Whitney Houston's sixth studio album I Look to You.", "Surname"]Get the result as a list of "Surname" entities:
TextCases["In 2009, Keys approached Clive Davis for permission to submit a song for Whitney Houston's sixth studio album I Look to You.", "Surname" -> "Interpretation", VerifyInterpretation -> True]A similar result can be obtained by applying Interpreter["Surname"] to text snippets:
Interpreter["Surname"][{"Keys", "Davis", "Houston"}]Get properties about occurrences of surnames:
TextContents["In 2009, Keys approached Clive Davis for permission to submit a song for Whitney Houston's sixth studio album I Look to You.", "Surname", All]Find mentions of the surname "Keys" in a text:
TextContents["In 2009, Keys approached Clive Davis for permission to submit a song for Whitney Houston's sixth studio album I Look to You. She subsequently co-wrote and produced the single \"Million Dollar Bill\" with record producer Swizz Beatz. Months later, she was featured on rapper Jay-Z's song \"Empire State of Mind\" which was the lead single from his eleventh studio album The Blueprint 3.", Entity["Surname", "Keys"]]See Also
TextCases TextPosition TextSentences Containing
Entity Types: Surname
Interpreter Types: Surname ComputedSurname
Text Contents: GivenName PersonTitle Person Language Religion Country