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.4 date: 2021/01/20 16:02:31
user: cg
file: TextClassifier.st directory: libbasic2
module: stx stc-classLibrary: libbasic2

Description:


an initial experiment in text classification.
see BayesClassifierTest


copyright

COPYRIGHT (c) 2016 by eXept Software AG All Rights Reserved This software is furnished under a license and may be used only in accordance with the terms of that license and with the inclusion of the above copyright notice. This software may not be provided or otherwise made available to, or used by, any other person. No title to or ownership of the software is hereby transferred.

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.7.0.0; WebServer 1.702 at 20f6060372b9.unknown:8081; Mon, 30 Dec 2024 17:45:45 GMT