A C D E F G I J K L M N O P R S T U V W X

S

save(String) - Method in class moj.ri.SparseDistributedMemory
Saves the RandomIndex to the given filename with the extension ".xml" added.
saveCompressed - Variable in class moj.javasdm.TrainRIprops
 
saveCompressed(String) - Method in class moj.ri.SparseDistributedMemory
Saves the RandomIndex to the given filename as a zip-file with the extension ".xml.zip" added.
savePreprocessedText - Variable in class moj.javasdm.TrainRIprops
 
scrutinize(String) - Method in class moj.lang.se.GranskaConnection
Sends the text text to a Granska server and returns an InputSource "pointing" at the scrutinized text.
seed - Variable in class moj.ri.RIprops
 
setAllLowerCase(boolean) - Method in class moj.ri.RandomIndex
Sets the RandomIndex to henceforth automagically convert all words (index terms) to all lower case and returns the previous state.
setDocumentLabels(boolean) - Method in class moj.ri.RandomIndex
Sets the RandomIndex to henceforth index on document level instead of the usual word context level.
setIndex(RandomIndex) - Method in class moj.ri.weighting.WeightingScheme
The RandomIndex the WeightingScheme is used for so that extending schemes can use information kept by the index, e.g.
setLocale(Locale) - Method in class moj.lang.GenericTokenizer
Set the Locale to which the tokenizer should conform to.
setMaxNumThreads(int) - Method in class moj.ri.RandomIndex
The maximum number of concurrent threads that should be reserved for RI for adding text to the index.
setMetaData(String) - Method in class moj.ri.RandomLabel
Set String based meta data for the RandomLabel.
setSize(byte[], int) - Static method in class moj.util.ArrayTools
Resizes an array of bytes.
setSleepFactor(long) - Method in class moj.ri.RandomIndex
The number of milliseconds a thread should sleep when trying to update a RandomLabel that is already undergoing updating by another thread.
setStopWords(HashSet<String>) - Method in class moj.lang.StopList
Sets the set of stop words to the provided HashSet.
setUnaryLabels(boolean) - Method in class moj.ri.RandomIndex
Sets the RandomIndex to henceforth use unary labels, incremented from seed, and returns the previous state.
setVocabulary(Set<String>) - Method in class moj.ri.RandomIndex
Sets the restricted vocabulary to the supplied Set and returns the old vocabulary set.
In order to reset the vocabulary you can supply an empty Set, the RandomLabels with pruned context vectors will however stay pruned (i.e.
shortestWord - Variable in class moj.lang.SLprops
 
SimilarityMeasure - Class in moj.similarity
This package contains classes for calculation of various similarity and dissimilatity measures.
SimilarityMeasure() - Constructor for class moj.similarity.SimilarityMeasure
 
simpleTag(String) - Method in class moj.lang.se.GranskaConnection
Deprecated. 
simWeight - Variable in class moj.ri.weighting.RosellsWS
 
size() - Method in class moj.ri.RandomIndex
Returns the number of Random Labels in the Random Index.
SLprops - Class in moj.lang
 
SLprops(String) - Constructor for class moj.lang.SLprops
 
SparseDistributedMemory - Class in moj.ri
SparseDistributedMemory extends RandomIndex with saving and loading of the RandomIndex.
SparseDistributedMemory(int, int, int, int, int, WeightingScheme) - Constructor for class moj.ri.SparseDistributedMemory
Create a new SparseDistributedMemory of RandomLabels with the given dimensionality, degree of initial randomness and window size for contextual updates.
SparseDistributedMemory() - Constructor for class moj.ri.SparseDistributedMemory
Create a new SparseDistributedMemory of RandomLabels with a dimensionality of 1800, a degree of initial randomness of 8 and a window size for contextual updates of 3 (i.e.
splitBytes(String, String) - Static method in class moj.util.ArrayTools
Converts a string of numbers to a byte array.
splitDoubles(String, String) - Static method in class moj.util.ArrayTools
Convert a string of reals to a double array.
splitFloats(String, String) - Static method in class moj.util.ArrayTools
Convert a string of reals to a float array.
splitInts(String, String) - Static method in class moj.util.ArrayTools
Converts a string of numbers to an integer array
splitLongs(String, String) - Static method in class moj.util.ArrayTools
Converts a string of numbers to a long array
splitShorts(String, String) - Static method in class moj.util.ArrayTools
Converts a string of numbers to a short array
StandardDeviationList - Class in moj.lang
StandardDeviationList holds a list of unique tokens (index terms) and their respective standard deviation of the distance between the token instances' positions in the text processed by the list.
StandardDeviationList() - Constructor for class moj.lang.StandardDeviationList
Creates a new empty StandardDeviationList.
startElement(String, String, String, Attributes) - Method in class moj.ri.IndexHandler
 
startNewIndex - Variable in class moj.javasdm.TrainRIprops
 
StatServConnect(String, String) - Method in class moj.lang.statserv.StatServConnection
Sends the text and title to a StatServ servlet and lets each previously addedStatServRequest module request and parse its own statistics, which is then made available through each StatServRequest module respectively.
StatServConnection - Class in moj.lang.statserv
StatServConnection handles all communication with a StatServ server.

StatServ TODO:
- When adding to a document set the response should contain the number of tokens added - A StatServRequest should be able to contain a request for a list of available docsets, e.g.
StatServConnection() - Constructor for class moj.lang.statserv.StatServConnection
Create a new StatServConnection to the StatServ server given in the file StatServ.properties.
StatServRequest - Class in moj.lang.statserv.modules
StatServRequest in an abstract class that stipulates what fields and methods a StatServ request module at least should supply and implement.
statservURL - Variable in class moj.lang.statserv.StatServConnection
URL to current StatServ servlet
StopList - Class in moj.lang
A StopList holds a set of index terms that are to be stripped away from a text (i.e.
StopList() - Constructor for class moj.lang.StopList
Creates a StopList using the default properties file 'StopList.properties'
StopList(SLprops) - Constructor for class moj.lang.StopList
Creates a StopList using the stop list properties properties
StopList(String) - Constructor for class moj.lang.StopList
Creates a StopList using the properties file propertiesFile
stoplistFile - Variable in class moj.lang.SLprops
 
stripAffixes(String) - Method in class moj.lang.en.PorterStemmer
Removes all non-word characters from the given word and strips it (if possible) from English pre- and suffixes.
stripHTML - Variable in class moj.javasdm.TrainRIprops
 
stripHTML(String) - Method in class moj.util.TagStripper
Strips HTML tags and comments from the given string and returns a string while trying to retain the structure of the original text by converting HTML line breaks, paragraphs, headings etc to ordinary (hard) single and double line breaks.
stripHTML(Reader) - Method in class moj.util.TagStripper
Strips HTML tags and comments from the given steam and returns a string while trying to retain the structure of the original text by converting HTML line breaks, paragraphs, headings etc to ordinary (hard) single and double line breaks.
stripPrefixes(String) - Method in class moj.lang.en.PorterStemmer
 
stripSuffixes(String) - Method in class moj.lang.en.PorterStemmer
 

A C D E F G I J K L M N O P R S T U V W X