Coder Social home page Coder Social logo

dudulu's Introduction

#DuDuLu

logo

##Introduction

DuDuLu is a web api server which is used to text mining.Support some api to get basic information from text presently.I will update it when it need.

As the same time,this project was collected my another repositories.

ML and DM in action

##Version

0.1.1

The first number mean the version of reconstruction.The second one mean the version of functional.The last one mean the version of fixing bug or functional optimization.

##API Introduction

  • API of cut the sentence: /cut?sentence=""&method=""

  • sentence a sentence you need to cut

  • method=all ALL MODEL to cut sentence

  • method=defaule Defalue MODEL to cut sentence

  • method=search HMM MODEL to cut sentence

  • method=search_all HMM MODEL and ALL MODEL to cut sentence

  • when you aren't support the method name,it was defalue model.

Return a data with JSON format.Just like

 {
 	"status" //successful or failure 
 	"info" //The information only exist when the status is failure.It will be null,when the query successful.
 	"data"://The word list which cut from the sentence. 
 }
  • Word Count Api: /count?sentence=""&method=""

  • The parmas same as API of cut the sentence.

Return a data with JSON format.Just like

 {
 	"status" //successful or failure 
 	"info" //The information only exist when the status is failure.It will be null,when the query successful.
 	"data"://A Hash Table .Key is the word and the value is the frequency. 
 }
  • Mood Analysze Api /mood?sentence=""

  • sentence A sentence with 1 to 200 words.

    Return a data with JSON format.Just like

 {
 	"status" //successful or failure 
 	"info" //The information only exist when the status is failure.It will be null,when the query successful.
 	"data"://A Hash Table .Key is three names of mood, positive,neutral,negative.Value is the possibility of three moods. 
 }

Currently only support Chinese

##Request

  • python 3.4+
  • flask 0.10.1
  • jieba 0.38
  • numpy

##How to use

git clone or download the code from this page,and input python dudulu.py in correct directory.

And visited localhost:8888 on your brower,your can visited the page which is used to test the api ,which is used to analyze the mood from text

##ToDoList

  • As far as possible,use the script to finish the train of model.
  • Improved algorithm.
  • Let User train the model together.

##Demo

My api server

##Example

1 2 3 4

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.