python - How to search human names in a dataframe?
问题描述
I am trying to search human name from the dataframe. I have a very large dataset where i need to tokenize everyword but human names should be full names. I am just creating this as an example.
Date Text
09.05.2019 His name is Detlef Schubert.
04.09.2019 Mr. Klau Gerd is a good person.
So i want the output like this:
Date Text
09.05.2019 His
09.05.2019 name
09.05.2019 is
09.05.2019 Detlef Schubert
04.09.2019 Mr. Klaus Gerd
04.09.2019 is
04.09.2019 a
04.09.2019 good
04.09.2019 person.
So far i am doing this:
df = df.set_index('Date')['Text'].str.split().explode()
But i want full name when i do tokenizing
解决方案
推荐阅读
- python - 如何在创建用户时更新特定用户类型的状态
- react-native - React Native Navigation V5 堆栈、BottomTab 和抽屉式导航
- kubernetes - 如何在 Kubernetes 中创建服务帐户时禁用创建令牌秘密创建?
- python - AllenNLP 语义角色标注器 - 参数注释
- python - 在 python 中使用 selenium 查找和下载文件
- java - 无法在 Spring Boot 中解析 JSON
- java - 从另一个类调用时无法调用向ComboBox添加项目,ComboBox的getter返回null
- javascript - JavaScript 最大化点击
- google-cloud-platform - 即使在授予“服务帐户令牌创建者”角色后也无法模拟 GCP ServiceAccount
- docker - 使用 containerd 的 ctr 作为容器中的另一个用户执行命令