This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (
This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (
wordtip /
| name | age | message | |
|---|---|---|---|
| |
.gitignore | ||
| |
AUTHORS | Mon Aug 25 23:36:04 -0700 2008 | |
| |
COPYING | Mon Aug 25 23:36:04 -0700 2008 | |
| |
ChangeLog | Mon Aug 25 23:36:04 -0700 2008 | |
| |
INSTALL | ||
| |
Makefile.am | ||
| |
NEWS | Mon Aug 25 23:36:04 -0700 2008 | |
| |
README | ||
| |
autogen.sh | Mon Aug 25 23:36:04 -0700 2008 | |
| |
configure.ac | ||
| |
data/ | ||
| |
m4/ | Tue Aug 26 04:32:08 -0700 2008 | |
| |
src/ | ||
| |
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.








