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 (
commit 00c4924e9183bfccb0d002d61e5d813e7d3043f5
tree cb714bc004904538733d3f23f81fa394b4bf9a3f
parent d4cf89a40afe4fe073dcad1c8cf42d6626fb263b
tree cb714bc004904538733d3f23f81fa394b4bf9a3f
parent d4cf89a40afe4fe073dcad1c8cf42d6626fb263b
wordtip /
| name | age | message | |
|---|---|---|---|
| |
.gitignore | ||
| |
AUTHORS | ||
| |
COPYING | Mon Aug 25 23:36:04 -0700 2008 | |
| |
ChangeLog | ||
| |
INSTALL | ||
| |
Makefile.am | Mon Sep 15 08:41:12 -0700 2008 | |
| |
NEWS | ||
| |
README | ||
| |
autogen.sh | Mon Aug 25 23:36:04 -0700 2008 | |
| |
configure.ac | ||
| |
data/ | ||
| |
m4/ | ||
| |
src/ | Wed Sep 24 08:35:25 -0700 2008 | |
| |
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.








