自然语言处理的python库
linguistics的Python项目详细描述
语言学
语言学是一个自然语言处理的python库。
安装
您可以使用pip安装语言学。
pip install linguistics
依赖关系
语言学使用葡萄园和图形来可视化文档的图形。
用法
创建文档
fromlinguisticsimportDocument# create documentdocument=Document("He also begat and brought up five pairs of male children.")
实体图
display(document.entity_graph.render())
文档图
display(document.graph.render())