我有一个如下所示的向量,想确定列表中哪些元素是人名,哪些不是。我找到了humaniformat包,可以格式化名称,但很遗憾它不能确定字符串是否实际上是名称。我还发现了一些实体提取包,但它们似乎需要实际文本进行词性标注,而不是单个名称。
例子
pkd.names.quotes <- c("Mr. Rick Deckard", # Name
"Do Androids Dream of Electric Sheep", # Not a name
"Roy Batty", # Name
"How much is an electric ostrich?", # Not a name
"My schedule for today lists a six-hour self-accusatory depression.", # Not a name
"Upon him the contempt of three planets descended.", # Not a name
"J.F. Sebastian", # Name
"Harry Bryant", # Name
"goat class", # Not a name
"Holden, Dave", # Name
"Leon Kowalski", # Name
"Dr. Eldon Tyrell") # Name