Semanter Members

Stot

Stot

Semanter Members

The Semanter type exposes the following members.

Constructors


  Name Description
Public method 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
Public method AddToDictionary
Provided a Book and its weight, this method allocat.es each word in the book to its weight
Public method AddWordToDictionary
Adds the word to dictionary and increments the weight if it already exists.
Public method Autocorrect
Corrects the specified query. *For DID you mean, or showing results instead
Public method CorrectWord(String, Int32)
The Correcter Corrects the specified word using the Set dictionary
Public method CorrectWord(String)
Corrects the word.
Public method Static member Splitwords(String)
Edit the specified query by splitting with punctuations and whitespaces.
Public method Static member Splitwords(String, String)
Edit the specified query by splitting with punctuations and whitespaces, with exceptions of some punctuations.
Public method Static member Splitwords(String, array<String>[]()[][])
Edit the specified query by splitting with punctuations and whitespaces, with exceptions of some punctuations.
Public method StemWord
The Stemmer class transforms a word into its root form. Implementing the Porter Stemming Algorithm
Public method Suggestions
Suggest Search Queries Similar to the Passed in query
Public method 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
Public method 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
Public field Static member punctuations
An array of all punctutions, can be used for splitting text into constituent words