Django 从JSON中识别名词和动词

Django 从JSON中识别名词和动词,django,angular,django-rest-framework,Django,Angular,Django Rest Framework,假设我有一个JSON数据,如下所示: tasks=[ { "id":17, "title":"Browse through the list of books", "how_often":"DO", "how_important_task":"EI", "role":"reader", ... }, { "id":18, "title

假设我有一个JSON数据,如下所示:

tasks=[
    {
        "id":17,
        "title":"Browse through the list of books", 
        "how_often":"DO",   
        "how_important_task":"EI",  
        "role":"reader",
        ...
    },
    {
        "id":18,
        "title":"Search for a book",
        "how_often":"DS",
        "how_important_task":"EI",
        "role":"reader",
        ...
    },
    {
        "id":19,
        "title":"Request a book",
        "how_often":"WO",
        "how_important_task":"RI",
        "role":"reader",
        ...
    },
    {
        "id":26,
        "title":"See latest arrivals of the books",
        "how_often":"MO",
        "how_important_task":"LI",
        "role":"reader",
        ...
    }

]
我感兴趣的是从这些数据中提取名词和动词,可能是针对每个任务对象

  • 在我的angular前端或django后端处理是否更容易/更好
  • 有这样的库吗
  • 有django的图书馆吗
    这听起来绝对像是在后端完成的任务。谷歌提供的服务正是您想要的。

    您可以使用(或)。使用Python是Django的理想选择,您将有一个开源解决方案,可以检查代码

    网站上也有很多学习材料,包括关于NTLK的例子和书籍

    当然,因为我使用Python库来回答,所以我更喜欢使用服务器端解决方案,因为Python是一种更科学的语言,我认为它比Javascript更容易找到或使用与Python相关的东西。但当然,如果您想使用建议@bug的API,则可以选择使用Javascript。我不太喜欢谷歌的API,因为如果谷歌不能从API中赚到钱的话,未来会有问题


    您应该使用更多的解决方案,并检查解决方案的质量,然后您可以决定哪些方案效果最好。

    非常感谢您的指点!我不会立即接受答案,我会等待更多的评论,以获得更多的想法!无意冒犯:)谢谢你的回答!