public
Description: will be a text classification desktop service
Homepage:
Clone URL: git://github.com/markoa/wordtip.git
markoa (author)
Wed Sep 24 08:35:25 -0700 2008
commit  00c4924e9183bfccb0d002d61e5d813e7d3043f5
tree    cb714bc004904538733d3f23f81fa394b4bf9a3f
parent  d4cf89a40afe4fe073dcad1c8cf42d6626fb263b
name age message
file .gitignore Loading commit data...
file AUTHORS
file COPYING Mon Aug 25 23:36:04 -0700 2008 Initial commit Setting up autotools. [markoa]
file ChangeLog
file INSTALL
file Makefile.am Mon Sep 15 08:41:12 -0700 2008 Wrote Language, which is a provider of stemming... [markoa]
file NEWS
file README
file autogen.sh Mon Aug 25 23:36:04 -0700 2008 Initial commit Setting up autotools. [markoa]
file configure.ac
directory data/
directory m4/
directory src/ Wed Sep 24 08:35:25 -0700 2008 Use a home-made NonCopyable [markoa]
directory tests/
README
/////////////////////////////
          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.