eXept Software AG Logo

Smalltalk/X Webserver

Documentation of class 'TextClassifier':

Home

Documentation
www.exept.de
Everywhere
for:
[back]

Class: TextClassifier


Inheritance:

   Object
   |
   +--TextClassifier
      |
      +--BayesClassifier

Package:
stx:libbasic2
Category:
Collections-Text-Support
Version:
rev: 1.3 date: 2017/01/24 00:06:07
user: cg
file: TextClassifier.st directory: libbasic2
module: stx stc-classLibrary: libbasic2
Author:
cg

Description:


an initial experiment in text classification.
see BayesClassifierTest



Class protocol:

instance creation
o  new
return an initialized instance


Instance protocol:

initialization
o  initialize
Invoked when a new instance is created.

usage example(s):

super initialize.   -- commented since inherited method does nothing

o  initializeCategory: categoryName

text handling
o  collectWords: lines
computes words from lines

o  dehyphenate: linesCollection
join hypens

o  tokenize: string



ST/X 7.2.0.0; WebServer 1.670 at bd0aa1f87cdd.unknown:8081; Fri, 16 Apr 2021 10:33:43 GMT