Stot
|
Semanter Members
The Semanter type exposes the following members.
Constructors
Name | Description | |
---|---|---|
Semanter |
Initializes a new instance of the [Semanter] class, reads all the words in the dictionary file
and the common file and allocates weight to each word.
|
Methods
Name | Description | |
---|---|---|
AddToDictionary |
Provided a Book and its weight, this method allocat.es each word in the book to its weight
|
|
AddWordToDictionary |
Adds the word to dictionary and increments the weight if it already exists.
|
|
Autocorrect |
Corrects the specified query. *For DID you mean, or showing results instead
|
|
CorrectWord(String, Int32) |
The Correcter Corrects the specified word using the Set dictionary
|
|
CorrectWord(String) |
Corrects the word.
|
|
Splitwords(String) |
Edit the specified query by splitting with punctuations and whitespaces.
|
|
Splitwords(String, String) |
Edit the specified query by splitting with punctuations and whitespaces,
with exceptions of some punctuations.
|
|
Splitwords(String, array<String>[]()[][]) |
Edit the specified query by splitting with punctuations and whitespaces,
with exceptions of some punctuations.
|
|
StemWord |
The Stemmer class transforms a word into its root form.
Implementing the Porter Stemming Algorithm
|
|
Suggestions |
Suggest Search Queries Similar to the Passed in query
|
|
TrieWord(String) |
Adds the word to the Suggestions trie.
A data structure containing all the Suggestions as values, under their Trie as key
e.g Tomiwa is a value under T, To, Tom, Tomi, Tomiw, and Tomiwa e.t.c
|
|
TrieWord(String, Int32) |
Adds the word to the Suggestions trie.
A data structure containing all the Suggestions as values, under their Trie as key
e.g Tomiwa is a value under T, To, Tom, Tomi, Tomiw, and Tomiwa e.t.c
|
Fields
Name | Description | |
---|---|---|
punctuations |
An array of all punctutions, can be used for splitting text into constituent words
|