Home

Awesome

DeepNLP AI APP Store

DeepNLP AI Store (http://www.deepnlp.org/store) is a newly released website to let users write genuine reviews, ratings, human evaluation, prompts and share use cases about detailed aspects of AI services from users' perspective (different from researchers' perspective like the LLM/MultiModal benchmarks). DeepNLP wants to build the platform referred as the "Yelp" of AI services, which stems from its role in providing a platform where users can discover and connect with various AI services, AI Apps and Robotics community and ease the burden of customers choosing various AI services, similar to how Yelp helps users find local businesses and services.

image text

Detailed AI Service Use Case

Users can write detailed reviews about some functions about an AI service (ChatGPT/Gemini/Perplexity/Midjourney/) like how AI is doing on "Correct Grammarly Mistakes in Essays", "Acting like doctors about Illness", or text-to-image ability like "Generate Cartoon Characters", "Draw Picture of Fantasy Humanoid", by uploading the screenshots of a conversation or the generated images of AI image generator.

Multi-Aspect Rating

Users can write review and give overall rating from 1 to 5 to each function of AI service, as well as give detailed rating of different aspects of each function, including "Correctness", "Helpfulness" and "Interesting", and customized aspects of each function, such as "Clarity of image", "Image Resolution", "Artistic", "Grammar", "Succintness" and more.

image text

All Categories and People Groups

We cover 30+ different categories of use cases, such as AI Image Generators, AI Assistant & Chatbot, AI Translator, AI Search Engine, AI for kids, AI for adults, AI for elderly, AI in TRAVEL, AI in TRANSPORTATION AI in HEALTHCARE, AI in BUSINESS, AI in FINANCE, AI in EDUCATION, AI in PRODUCTIVITY TOOL, AI in POLITICS, AI in ENTERTAINMENT, AI in NEWS, AI in ART AND SPORTS, AI in LIFESTYLE AI in PAYMENT, AI in SOCIAL, AI in AGRICULTURE AI in SCIENCE, AI in TECHNOLOGY, AI in TRAVEL, AI in TRANSPORTATION, AI in CAR, AI in CHARITY AI in PUBLIC SERVICE, AI in HOUSING, AI in LAW, AI in COMMUNICATION, AI in FOOD

Reviews and Rating of AI App Store By Categories

AI IMAGE GENERATOR <br> AI Search Engine <br> AI Chatbot Assistant <br> AI VIDEO GENERATOR Reviews <br> AI for ELDERLY <br> AI for KIDS <br> AI in LAW <br> AI in FINANCE <br> AI in HEALTHCARE <br> AI in BUSINESS <br> AI in EDUCATION <br> AI in PRODUCTIVITY TOOL <br> AI in POLITICS <br> AI in ENTERTAINMENT <br> AI in NEWS <br> AI in ART AND SPORTS <br> AI in LIFESTYLE <br> AI in PAYMENT <br> AI in SOCIAL <br> AI in AGRICULTURE <br> AI in SCIENCE <br> AI in TECHNOLOGY <br> AI in TRAVEL <br> AI in TRANSPORTATION <br> AI in CAR <br> AI in CHARITY <br> AI in PUBLIC SERVICE <br> AI in HOUSING <br> AI in COMMUNICATION <br> AI in FOOD <br> Robot Quadruped Robot Reviews <br> Robot Humanoid Robot Reviews <br> Robotaxi Reviews <br> Electric Vehicle Reviews <br>

AI App Store Major AI Service Publisher

Chatbot Assistant

ChatGPT User Reviews <br> Gemini User Reviews <br> Perplexity User Reviews <br> Claude Anthropic User Reviews <br> Doubao User Reviews <br> Qwen User Reviews <br> Zhipu AI User Reviews <br> Zhipu CogVLM AI <br> Character.AI User Reviews <br> Xinye User Reviews <br> GPT-5 Forecast Reviews <br>

Image Generator

Midjourney User Reviews <br> Stable Diffusion User Reviews <br> Canva User Reviews <br>

AI Writer

Grammarly User Reviews <br>

Robots Humanoid Quadruped

Figure ai User Reviews <br> Unitree User Reviews <br> Boston Dynamics Reviews <br> Anybotics Reviews <br> Tesla Reviews <br>

Electric Vehicle

Bmw i4 Reviews <br> Hyundai ioniq 6 Reviews <br> Byd seal Reviews <br> Tesla Model 3 Reviews <br>

Video Generator

Kling AI Reviews <br> Dreamina Douyin Reviews <br> Sora Openai Reviews <br>

Comparison of AI Services Reviews and Ratings in Multiple Aspects

AI Chatbot Assistant

ChatGPT vs Gemini <br> Gemini vs ChatGPT <br> ChatGPT vs Perplexity <br> Perplexity vs ChatGPT <br> ChatGPT vs Claude <br> Claude vs ChatGPT <br> Gemini vs Perplexity <br> Perplexity vs Gemini <br> Gemini vs Claude <br> Claude vs Gemini <br> Perplexity vs Claude <br> Claude vs Perplexity <br> doubao vs chatgpt <br> qwen vs chatgpt <br> zhipu vs chatgpt <br> chatgpt vs zhupu <br> doubao vs qwen <br> doubao vs zhipu ai <br>

AI Image Generator Comparison

midjourney vs stable diffusion <br> stable diffusion vs midjourney <br> midjourney vs Canva <br> Canva vs midjourney <br> midjourney vs chatgpt <br> chatgpt vs midjourney <br>

AI Video Generator Comparison

Runway vs Pika <br> Runway vs Kling <br> Runway vs Dreamina <br> Kling AI vs Runway <br> Kling AI vs Pika <br> Kling AI vs Dreamina <br> Dreamina vs Kling AI <br> Dreamina vs Runway <br> Dreamina vs Pika <br>

AI Chatbot

character ai vs Chatgpt <br> character ai vs Gemini <br>

AI Writing

Grammarly vs Chatgpt <br> ​Grammarly vs Gemini Google <br>

Robotaxi

Baidu VS Waymo Robotaxi Reviews <br> Waymo vs Baidu User Reviews <br>

Robots

Figure AI vs Tesla <br> Tesla vs Figure AI <br> Figure AI vs Boston Dynamics <br> Boston Dynamics vs Figure AI <br> Tesla vs Boston Dynamics <br> Boston Dynamics vs Tesla <br> Unitree vs Boston Dynamics <br> Anybotics vs Boston Dynamics <br>

AI Store of Image Generator

Best AI Tools in Image Generator User Ratings Reviews and Showcase <br>

image text

DeepNLP AI store is a platform and community for user to write genuine user reviews and ratings of AI apps and services. User can upload pictures as showcase of AI Image Generator, such as Midjourney, Canva, Stable Diffusion, etc. People can write reviews about some common user prompts (questions or intents), such as "Generate Cartoon Characters", "Draw Fantacy and Humanoids", "Plot Architecture" and more.

image text image text

AI Image Generator ShowCases

AI Image Generator of FOOD

AI Image Generator of FOOD <br> Ask Midjourney to generate FOOD related images <br> Ask Stable Diffusion to generate FOOD related images <br> Ask Canva to generate FOOD related images <br> Ask Doubao to generate FOOD related images <br> Ask Dreamina to generate FOOD related images <br> Ask Zhipu AI to generate FOOD related images <br> Ask Qwen to generate FOOD related images <br>

AI Image Generator of ANIMAL

AI Image Generator of ANIMAL <br> Ask Midjourney to generate ANIMAL related images <br> Ask Stable Diffusion to generate ANIMAL related images <br> Ask Canva to generate ANIMAL related images <br> Ask Doubao to generate ANIMAL related images <br> Ask Dreamina to generate ANIMAL related images <br> Ask Zhipu AI to generate ANIMAL related images <br> Ask Qwen to generate ANIMAL related images <br>

AI Image Generator of CELEBRITY

AI Image Generator of CELEBRITY <br> Ask Midjourney to generate CELEBRITY related images <br> Ask Stable Diffusion to generate CELEBRITY related images <br> Ask Canva to generate CELEBRITY related images <br> Ask Doubao to generate CELEBRITY related images <br> Ask Dreamina to generate CELEBRITY related images <br> Ask Zhipu AI to generate CELEBRITY related images <br> Ask Qwen to generate CELEBRITY related images <br>

AI Image Generator of SELFIES

AI Image Generator of SELFIES <br> Ask Midjourney to generate SELFIES related images <br> Ask Stable Diffusion to generate SELFIES related images <br> Ask Canva to generate SELFIES related images <br> Ask Doubao to generate SELFIES related images <br> Ask Dreamina to generate SELFIES related images <br> Ask Zhipu AI to generate SELFIES related images <br> Ask Qwen to generate SELFIES related images <br>

AI Image Generator of SPORTS

AI Image Generator of SPORTS <br> Ask Midjourney to generate SPORTS related images <br> Ask Stable Diffusion to generate SPORTS related images <br> Ask Canva to generate SPORTS related images <br> Ask Doubao to generate SPORTS related images <br> Ask Dreamina to generate SPORTS related images <br> Ask Zhipu AI to generate SPORTS related images <br> Ask Qwen to generate SPORTS related images <br>

AI Image Generator of TECHNOLOGY

AI Image Generator of TECHNOLOGY <br> Ask Midjourney to generate TECHNOLOGY related images <br> Ask Stable Diffusion to generate TECHNOLOGY related images <br> Ask Canva to generate TECHNOLOGY related images <br> Ask Doubao to generate TECHNOLOGY related images <br> Ask Dreamina to generate TECHNOLOGY related images <br> Ask Zhipu AI to generate TECHNOLOGY related images <br> Ask Qwen to generate TECHNOLOGY related images <br>

AI Image Generator of TRAVEL

AI Image Generator of TRAVEL <br>

Ask Midjourney to generate TRAVEL related images <br> Ask Stable Diffusion to generate TRAVEL related images <br> Ask Canva to generate TRAVEL related images <br> Ask Doubao to generate TRAVEL related images <br> Ask Dreamina to generate TRAVEL related images <br> Ask Zhipu AI to generate TRAVEL related images <br> Ask Qwen to generate TRAVEL related images <br>

AI Image Generator of NATURE

AI Image Generator of NATURE <br> Ask Midjourney to generate NATURE related images <br> Ask Stable Diffusion to generate NATURE related images <br> Ask Canva to generate NATURE related images <br> Ask Doubao to generate NATURE related images <br> Ask Dreamina to generate NATURE related images <br> Ask Zhipu AI to generate NATURE related images <br> Ask Qwen to generate NATURE related images <br>

AI Image Generator of DAILY LIFE

AI Image Generator of DAILY LIFE <br> Ask Midjourney to generate DAILY LIFE related images <br> Ask Stable Diffusion to generate DAILY LIFE related images <br> Ask Canva to generate DAILY LIFE related images <br> Ask Doubao to generate DAILY LIFE related images <br> Ask Dreamina to generate DAILY LIFE related images <br> Ask Zhipu AI to generate DAILY LIFE related images <br> Ask Qwen to generate DAILY LIFE related images <br>

ShowCases

Use Midjourney to Generate Cartoon Characters <br> Use Midjourney to Draw Fantacy and Humanoids <br> Use Midjourney to Plot Architecture Use Stable Diffusion to Generate Cartoon Characters Use Stable Diffusion to Generate Fantacy and Humanoids Use Canva to Draw Fantacy and Humanoids

AI Store of AI Video Generator

AI Video Generator Reviews <br> Use Sora to generate FANTASY related Videos <br> Use Pika to generate ALL related Videos <br> Use Kling to generate FANTASY related Videos <br> Use Runway to generate FANTASY related Videos <br> Use Sora to generate FANTASY related Videos <br>

AI Store in Law

Best AI in Law and Legal User Ratings Reviews and Showcase <br>

image text

Unlike most Large Language Models(LLM) benchmark and arena's win-rate metric, which is quite difficult for customers to understand (1 vs 1 metric), users' reviews on DeepNLP AI store is about AI tool's performance in a detailed subfield of the industry, such as "Ask ChatGPT Employment Law Related Questions" and "Ask Gemini Contracts and Agreements Related Questions". Users can give rating from 1 to 5 stars on different aspects of the answeres generated by AI systems, including "Overall", "Correctness", "Helpfulness", "Interesting". They can also give rating to any customized aspect of the service, such as "whether the information is realtime", "generation speed", and many others. Here, we are going to cover different sub areas of AI in Law, includine Employment Law, Contracts and Agreements, Business and Corporate Law, Real Estate, Family Law, Personal Injury, Criminal Law, Immigration Law, and Civil Rights Law, etc.

Prompts (Questions) exmaples

Employment Law

Best AI in Employment Law <br> ask-chatgpt-employment-law-related-questions <br> ask perplexity ai employment law related questions <br> ask gemini employment law related questions <br> ask claude employment law related questions <br>

Contracts and Agreements

Best AI in Contracts and Agreements <br> Ask perplexity ai contracts and agreements related questions <br> Ask chatgpt contracts and agreements related questions <br> Ask gemini contracts and agreements related questions <br> Ask claude contracts and agreements related questions <br>

Business and Corporate Law

Best AI in Business and Corporate Law ask gemini business and corporate law related questions <br> ask chatgpt business and corporate law related questions <br> ask perplexity ai business and corporate law related questions <br> ask claude business and corporate law related questions <br>

Real Estate

Best AI in Real Estate Law ask-chatgpt-real-estate-related-questions <br> ask-perplexity-ai-real-estate-related-questions <br> ask-gemini-real-estate-related-questions <br> ask claude real estate related questions <br>

Civil Rights Law

Best AI in Civil Rights Law <br> ask perplexity ai civil rights law related questions <br> ask gemini civil rights law related questions <br> ask chatgpt civil rights law related questions <br> ask claude civil rights law related questions <br>

Family Law

Best AI in Family Law Ask chatgpt family law and related question <br> Ask claude family law related questions <br> Ask perplexity ai family law related questions <br> Ask gemini family law related questions <br>

Personal Injury

Best AI in Personal Injury <br> Ask perplexity ai personal injury law and accidents related question <br> Ask chatgpt personal injury law and accidents related question <br> Ask claude personal injury law and accidents related question <br> Ask gemini personal injury law and accidents related question <br>

Criminal Law

Best AI in Criminal Law Ask gemini criminal law related questions <br> Ask perplexity ai criminal law related questions <br> Ask chatgpt criminal law related questions <br> Ask claude criminal law related questions <br>

Immigration Law

Best AI in immigration law Ask perplexity ai immigration law related questions <br> Ask gemini immigration law related questions <br> Ask chatgpt immigration law related questions <br> Ask gemini criminal law related questions <br>

AI in Finance: User Ratings, Reviews and Showcase

Best AI in Finance User Ratings Reviews and Showcase <br>

image text

Prompts (Questions)

AI in Investment Finance

Best AI in Investment Finance <br> Ask chatgpt facts about investment and seek advice <br> Ask Gemini Facts about Investment and Seek Advice <br> Ask Claude INVESTMENT Related Questions <br> Ask Perplexity AI INVESTMENT Related Questions <br>

AI in INSURANCE Finance

Best AI in Finance INSURANCE User Ratings Reviews and Showcase <br> Ask Gemini INSURANCE Related Questions <br> Ask Perplexity AI INSURANCE Related Questions <br> Ask ChatGPT INSURANCE Related Questions <br> Ask Claude INSURANCE Related Questions <br>

AI in Mortgage and Loan Finance

Best AI in Mortgage Loan Finance <br> Ask ChatGPT MORTGAGE & LOAN Related Questions <br> Ask Gemini MORTGAGE & LOAN Related Questions <br> Ask Claude MORTGAGE & LOAN Related Questions <br> Ask Perplexity AI MORTGAGE & LOAN Related Questions <br>

AI in BANKING Finance

Best AI in BANKING Finance <br> Ask Perplexity AI BANKING Related Questions <br> Ask Gemini BANKING Related Questions <br> Ask ChatGPT BANKING Related Questions <br> Ask Claude BANKING Related Questions <br>

AI in DEBT Finance

Best AI in Debt Finance <br> Ask Claude DEBT Related Questions <br> Ask ChatGPT DEBT Related Questions <br> Ask Gemini DEBT Related Questions <br> Ask Perplexity AI DEBT Related Questions <br>

AI in Healthcare

Best AI in Healthcare User Ratings Reviews and Showcase <br>

HOSPITAL APPOINTMENT

Best AI in HOSPITAL APPOINTMENT <br> Ask Gemini HOSPITAL APPOINTMENT Related Questions <br> Ask ChatGPT HOSPITAL APPOINTMENT Related Questions <br> Ask Perplexity AI HOSPITAL APPOINTMENT Related Questions <br> Ask Claude HOSPITAL APPOINTMENT Related Questions <br>

HOSPITAL

Best AI in Hospital Healthcare <br>

AI in ILLNESS

Best AI in ILLNESS Healthcare <br> Seeing Doctors about Illness <br> Ask Gemini Food to Avoid About Illness <br> Ask Perplexity AI ILLNESS Related Questions <br> Ask ChatGPT ILLNESS Related Questions <br> Ask Claude ILLNESS Related Questions <br>

MEDICINE

Best AI in Medicine Healthcare <br> Ask ChatGPT MEDICINE Related Questions <br> Ask Perplexity AI MEDICINE Related Questions <br> Ask Gemini MEDICINE Related Questions <br> Ask Claude MEDICINE Related Questions <br>

NURSING

Best AI in NURSING Healthcare <br> Ask Gemini NURSING Related Questions <br> Ask Claude NURSING Related Questions <br> Ask Perplexity AI NURSING Related Questions <br> Ask ChatGPT NURSING Related Questions <br>

BEAUTY

Best AI in BEAUTY Healthcare <br> Ask Gemini NURSING Related Questions <br> Ask Claude NURSING Related Questions <br> Ask Perplexity AI NURSING Related Questions <br> Ask ChatGPT NURSING Related Questions <br>

ELDERLY CARE

Best AI in ELDERLY CARE <br> Ask Perplexity AI ELDERLY CARE Related Questions <br> Ask Gemini ELDERLY CARE Related Questions <br> Ask ChatGPT ELDERLY CARE Related Questions <br> Ask Claude ELDERLY CARE Related Questions <br>

MEDICAL INSTRUMENT

Best AI in MEDICAL INSTRUMENT <br> Ask ChatGPT MEDICAL INSTRUMENT Related Questions <br> Ask Claude MEDICAL INSTRUMENT Related Questions <br> Ask Perplexity AI MEDICAL INSTRUMENT Related Questions <br> Ask Gemini MEDICAL INSTRUMENT Related Questions <br>

AI for Elderly: User Ratings, Reviews and Showcase

Best AI for Elderly User Ratings, Reviews and Showcase <br>

Prompts (Questions) exmaples What are the side effects of [medication]? How can I manage [illness]?

e.g. What are the side effects of Tylenol? How can I manage arthritis pain?

ShowCases

Elderly People Ask Gemini Personal Hobbies Related Questions <br> Elderly People Ask Gemini Legal Questions <br> Elderly People Ask Gemini Health and Medicine Related Questions <br> Elderly People Ask ChatGPT Health and Medicine Related Questions <br> Elderly People Ask Perplexity AI Health and Medicine Related Questions <br> Elderly People Ask Claude Health and Medicine Related Questions <br>

AI for Kids: User Ratings, Reviews and Showcase

Best AI for Kids User Ratings, Reviews and Showcase

Prompts (Questions) exmaples

STORY TELLING for KIDS

  1. Please tell me a bedtime story about unicorns for my 4 years old daughter.
  2. Help me write a story about Paw Patrol Dogs Fighting Bad Guys

DRAWING|AIGC

  1. Help me Draw a picture about Paw Patrol Dogs Chase Driving Police Car
  2. Help me Draw a picture Peppa Pig playing in the swimming pool

ShowCases Ask Gemini to Tell a Bedtime Story Ask Gemini to Draw Cartoon Characters Ask Gemini to Tell a Bedtime Story Ask ChatGPT to Draw Cartoon Character

AI in LifeStyle

Best AI in LifeStyle User Ratings, Reviews and Showcase

Prompts (Questions) exmaples

Act as ${role}

I want you to respond and answer like ${role} using the tone, manner that ${role} would use. Do not write any explanations. My first sentence is ${your_question}.

ShowCases

Ask ChatGPT to Act As Lovers in a Relationship <br> Ask Gemini to Act As Lovers in a Relationship <br> Ask Character AI to Act As Lovers in a Relationship <br> Ask Doubao to Act As Lovers in a Relationship <br> Ask Qwen AI from Alibaba to Act As Lovers in a Relationship <br> Ask Zhipu AI to Act As Lovers in a Relationship <br>

AI in Productivity Tool

Best AI in Productivity Tool User Ratings, Reviews and Showcase

image text

Writing Tool

Best AI in Writing Tool

Research Analysis

Best AI in Research & Analysis

Programming

Best AI in Programming

Prompts: Show me the ${programming language} code of ${algorithm}, no explanation. Write the ${programming language} to implement ${function}, no explanation. Generate the ${programming language} code of a ${description} website, no explanation. Find the ${statistic} from ${data_source} and display in ${format}.

e.g.

  1. Show me the latex code of KL Divergence
  2. Write the python code for QuickSort Implementation
  3. Generate the html code of a login page of a community website, no explanation.
  4. Find the 2023 divorce rate of all states in US and display in the table and line chart.

ShowCase

Programming

Gemini for Programming ChatGPT for Programming

Plot Chat

Use ChatGPT to Draw Plot of Math Function

Data Analysis

Use Gemini to Conduct Data Analysis

Quadruped Robot Reviews

Quadruped Robot Review <br> Boston Dynamics Spot Robot Dog Customer Reviews <br> Unitree Go2 Robot Dog Customer Reviews <br> Anybotics Robot Dog Customer Reviews <br>

Humanoid Robot Reviews

Humanoid Robot Reviews <br> Figure 02 Humanoid Robots Reviews <br>

Robotaxi Reviews

Robotaxi Reviews <br> Take a Ride in Waymo ROBOTAXI And Write Your Reviews <br> Take a Ride in Baidu Apollo ROBOTAXI And Write Your Reviews <br> Take a Ride using Full Self-Driving FSD ability of Tesla <br>

Electric Vehicle Reviews

Electric Vehicle Reviews <br> BMW i4 EV Reviews By Car Owners <br> Hyundai IONIQ 6 EV Reviews By Car Owners <br> BYD Seal EV Reviews By Car Owners <br> Tesla Model 3 EV Reviews By Car Owners <br>

Related Blog

http://www.deepnlp.org/blog/ <br> http://www.deepnlp.org/equation/ <br> http://www.deepnlp.org/search/ <br> http://www.deepnlp.org/workspace/ai_courses/ <br> http://www.deepnlp.org/workspace/aigc_chart/ <br> http://www.deepnlp.org/workspace/ai_writer/ <br> http://www.deepnlp.org/workspace/detail/ <br> Statistics Equation Formula <br> Machine Learning Equation Formula <br> Introduction to multimodal generative models <br> Generative AI Search Engine Optimization: How to Improve Your Content <br> AI Courses for Kids <br> AI in Fashion: Tell IWC Schaffhausen Watches Real or Fake <br> AI in Fashion: Tell Fendi bags real or fake <br> AI in Fashion: Tell Coach bags real or fake <br> AI in Fashion: Tell Prada bags real or fake <br> AI in Fashion: Tell Gucci bags real or fake <br> AI in Fashion: Tell Dior bags real or fake <br> AI in Fashion: Tell Hermes bags real or fake <br> AI in Fashion: Tell Chanel bags real or fake <br> AI in Fashion: Tell Louis Vuitton bags real or fake <br> AI in Fashion: Tell Omega Watches real or fake <br> AI in Fashion: Tell Rolex Watches real or fake <br>

======================================================================================================================================================================================================

By End of 2020, deepnlp lib is archived and only support TF to 1.13

Deep Learning NLP Pipeline implemented on Tensorflow. Following the 'simplicity' rule, this project aims to use the deep learning library of Tensorflow to implement new NLP pipeline. You can extend the project to train models with your own corpus/languages. Pretrained models of Chinese corpus are distributed. Free RESTful NLP API are also provided. Visit http://www.deepnlp.org/api/v1.0/pipeline for details.

Brief Introduction

Modules

Installation

    # linux, run the script:
    pip install deepnlp

Due to pkg size restriction, english pos model, ner domain specific model files are not distributed on pypi You can download the pre-trained model files from github and put in your installation directory .../site-packages/.../deepnlp/... model files: ../pos/ckpt/en/pos.ckpt ; ../ner/ckpt/zh/ner.ckpt

    # linux, run the script:
    tar zxvf deepnlp-0.1.7.tar.gz
    cd deepnlp-0.1.7
    python setup.py install
    # install crf++0.58 package using the script
    sh ./deepnlp/segment/install_crfpp.sh
    # Download all the pre-trained models
    python ./test/test_install.py
    
    # Or Download pre-trained models from below command lines
    import deepnlp
    deepnlp.download('segment')
    deepnlp.download('pos')
    deepnlp.download('ner')
    deepnlp.download('parse')

    # ./deepnlp/test folder
    cd test
    python test_segment.py    # segmentation
    python test_pos_en.py       # POS tag
    python test_ner_zh.py       # NER Zh
    python test_ner_domain.py   # NER domain-specific models
    python test_ner_dict_udf.py # NER load user dict and UDF for disambiguation
    python test_nn_parser.py    # dependency parsing
    python test_api_v1_module.py
    python test_api_v1_pipeline.py

Tutorial

Set Coding

设置编码 For python2, the default coding is ascii not unicode, use future module to make it compatible with python3

#coding=utf-8
from __future__ import unicode_literals # compatible with python3 unicode

Download pretrained models

下载预训练模型 If you install deepnlp via pip, the pre-trained models are not distributed due to size restriction. You can download full models for 'Segment', 'POS' en and zh, 'NER' zh, zh_entertainment, zh_o2o, 'Textsum' by calling the download function.

import deepnlp
# Download all the modules
deepnlp.download()

# Download specific module
deepnlp.download('segment')
deepnlp.download('pos')
deepnlp.download('ner')
deepnlp.download('parse')

# Download module and domain-specific model
deepnlp.download(module = 'pos', name = 'en') 
deepnlp.download(module = 'ner', name = 'zh_entertainment')

Segmentation

分词模块

#coding=utf-8
from __future__ import unicode_literals
from deepnlp import segmenter

tokenizer = segmenter.load_model(name = 'zh_entertainment')
text = "我刚刚在浙江卫视看了电视剧老九门,觉得陈伟霆很帅"
segList = tokenizer.seg(text)
text_seg = " ".join(segList)

#Results
# 我 刚刚 在 浙江卫视 看 了 电视剧 老九门 , 觉得 陈伟霆 很 帅

POS

词性标注

#coding:utf-8
from __future__ import unicode_literals

import deepnlp
deepnlp.download('pos')

## English Model
from deepnlp import pos_tagger
tagger = pos_tagger.load_model(name = 'en')  # Loading English model, lang code 'en', English Model Brown Corpus

text = "I want to see a funny movie"
words = text.split(" ")     # unicode
print (" ".join(words))

tagging = tagger.predict(words)
for (w,t) in tagging:
    pair = w + "/" + t
    print (pair)
    
#Results
#I/nn want/vb to/to see/vb a/at funny/jj movie/nn

## Chinese Model
from deepnlp import segmenter
from deepnlp import pos_tagger
tagger = pos_tagger.load_model(name = 'zh') # Loading Chinese model, lang code 'zh', China Daily Corpus

text = "我爱吃北京烤鸭"
words = segmenter.seg(text) # words in unicode coding
print (" ".join(words))

tagging = tagger.predict(words)  # input: unicode coding
for (w,t) in tagging:
    pair = w + "/" + t
    print (pair)

#Results
#我/r 爱/v 吃/v 北京/ns 烤鸭/n

NER

命名实体识别


from __future__ import unicode_literals   # compatible with python3 unicode

import deepnlp
deepnlp.download('ner')  # download the NER pretrained models from github if installed from pip

from deepnlp import ner_tagger

# Example: Entertainment Model
tagger = ner_tagger.load_model(name = 'zh_entertainment')   # Base LSTM Based Model
#Load Entertainment Dict
tagger.load_dict("zh_entertainment")
text = "你 最近 在 看 胡歌 演的 猎场 吗 ?"
words = text.split(" ")
tagset_entertainment = ['actor', 'role_name', 'teleplay', 'teleplay_tag']
tagging = tagger.predict(words, tagset = tagset_entertainment)
for (w,t) in tagging:
    pair = w + "/" + t
    print (pair)

#Result
#你/nt
#最近/nt
#在/nt
#看/nt
#胡歌/actor
#演的/nt
#猎场/teleplay
#吗/nt
#?/nt

Parsing

依存句法分析


from __future__ import unicode_literals # compatible with python3 unicode coding

from deepnlp import nn_parser
parser = nn_parser.load_model(name = 'zh')

#Example 1, Input Words and Tags Both
words = ['它', '熟悉', '一个', '民族', '的', '历史']
tags = ['r', 'v', 'm', 'n', 'u', 'n']

#Parsing
dep_tree = parser.predict(words, tags)

#Fetch result from Transition Namedtuple
num_token = dep_tree.count()
print ("id\tword\tpos\thead\tlabel")
for i in range(num_token):
    cur_id = int(dep_tree.tree[i+1].id)
    cur_form = str(dep_tree.tree[i+1].form)
    cur_pos = str(dep_tree.tree[i+1].pos)
    cur_head = str(dep_tree.tree[i+1].head)
    cur_label = str(dep_tree.tree[i+1].deprel)
    print ("%d\t%s\t%s\t%s\t%s" % (cur_id, cur_form, cur_pos, cur_head, cur_label))

# Result
id	word	pos	head	label
1	它	r	2	SBV
2	熟悉	v	0	HED
3	一个	m	4	QUN
4	民族	n	5	DE
5	的	u	6	ATT
6	历史	n	2	VOB

Pipeline

#coding:utf-8
from __future__ import unicode_literals

from deepnlp import pipeline
p = pipeline.load_model('zh')

#Segmentation
text = "我爱吃北京烤鸭"
res = p.analyze(text)

print (res[0].encode('utf-8'))
print (res[1].encode('utf-8'))
print (res[2].encode('utf-8'))

words = p.segment(text)
pos_tagging = p.tag_pos(words)
ner_tagging = p.tag_ner(words)

print (pos_tagging.encode('utf-8'))
print (ner_tagging.encode('utf-8'))

Textsum

自动文摘

See details: README

Textrank

重要句子抽取

See details: README

TextCNN (WIP)

文档分类

Train your model

自己训练模型 ###Segment model See instructions: README

###POS model See instructions: README

###NER model See instructions: README

###Parsing model See instructions: README

###Textsum model See instructions: README

Web API Service

www.deepnlp.org provides free web API service for common NLP modules of sentences and paragraphs. The APIs are RESTful and based on pre-trained tensorflow models. Chinese language is now supported.

Testing API from Browser, Need to log in first

image

Calling API from python

See ./deepnlp/test/test_api_v1_module.py for more details.

#coding:utf-8
from __future__ import unicode_literals

import json, requests, sys, os
if (sys.version_info>(3,0)): from urllib.parse import quote 
else : from urllib import quote

from deepnlp import api_service
login = api_service.init()          # registration, if failed, load default empty login {} with limited access
conn = api_service.connect(login)   # save the connection with login cookies

# Sample URL
# http://www.deepnlp.org/api/v1.0/pipeline/?lang=zh&annotators=segment,pos,ner&text=我爱吃上海小笼包

# Define text and language
text = ("我爱吃上海小笼包").encode("utf-8")  # convert text from unicode to utf-8 bytes

# Set up URL for POS tagging
url_pos = 'http://www.deepnlp.org/api/v1.0/pos/?"+ "lang=" + quote('zh') + "&text=" + quote(text)
web = requests.get(url_pos, cookies = conn)
tuples = json.loads(web.text)
print (tuples['pos_str'].encode('utf-8'))    # POS json {'pos_str', 'w1/t1 w2/t2'} return string

中文简介

deepnlp项目是基于Tensorflow平台的一个python版本的NLP套装, 目的在于将Tensorflow深度学习平台上的模块,结合 最新的一些算法,提供NLP基础模块的支持,并支持其他更加复杂的任务的拓展,如生成式文摘等等。

API 服务

http://www.deepnlp.org 出于技术交流的目的, 提供免费API接口供文本和篇章进行深度学习NLP的分析, 简单注册后就可以使用。 API符合RESTful风格, 内部是基于tensorflow预先训练好的深度学习模型。具体使用方法请参考博客: http://www.deepnlp.org/blog/tutorial-deepnlp-api/

API目前提供以下模块支持:

安装说明

    pip install deepnlp
    # linux, run the script:
    tar zxvf deepnlp-0.1.7.tar.gz
    cd deepnlp-0.1.7
    python setup.py install
    # 运行脚本安装 crf++0.58 包
    sh ./deepnlp/segment/install_crfpp.sh
    # 运行脚本下载预训练模型测试
    python ./test/test_install.py

Reference