Code Monkey home page Code Monkey logo

wordtip's Introduction

/////////////////////////////
          wordtip
/////////////////////////////

Wordtip is a text classification service for desktop and mobile
applications. It uses D-Bus as a messaging system to communicate
with clients.

Currently alpha and with just a simple implementation of
a Bayesian classifier, but it's working, and here's how you can
test it with Python:

----
import dbus

bus = dbus.SessionBus()
proxy = bus.get_object('org.freedesktop.Wordtip','/org/freedesktop/Wordtip')
wt = dbus.Interface(proxy, 'org.freedesktop.Wordtip')

# It first needs to be trained with a couple of examples:
wt.Train("the quick brown fox jumps over the lazy dog", "happy")
wt.Train("the birds are singing and the sun is bright", "happy")
wt.Train("When we speak of free software, we are referring to freedom, not price.", "license")
wt.Train("without conditions so long as your license otherwise remains in force", "license")

print wt.Classify("a quick sun came with me singing next to the fox")
print wt.Classify("terms that supplement the terms of this License by making exceptions from one or more of its conditions")
----

See INSTALL for installation instructions.

Wordtip is an open source project developed by Marko Anastasov
and covered by the GNU General Public License. See COPYING for
the exact text of the license.

wordtip's People

Contributors

markoa avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

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.