Class de.aitools.js.TermFrequency
Implementation of TermFrequency
Defined in: RetrievalModel.js.
Constructor Attributes | Constructor Name and Description |
---|---|
Implementation of TermFrequency as representation function to be used in a
retrieval model
|
Method Attributes | Method Name and Description |
---|---|
<static> |
de.aitools.js.TermFrequency.getBackStemming()
Returns the backstemming map that is created while document
representation.
|
<static> |
de.aitools.js.TermFrequency.getVocabulary()
Returns the vocabulary that is created
while document representation.
|
<static> |
de.aitools.js.TermFrequency.representDocument(document)
Creates and returns a vector space representation with the term frequency
model.
|
<static> |
de.aitools.js.TermFrequency.setDynamicStopwords(wordsArray)
|
<static> |
de.aitools.js.TermFrequency.setRemoveStopwords(bool)
Activate or deactivate stopword removal.
|
<static> |
de.aitools.js.TermFrequency.setStemming(bool)
Activate or deactivate stemming.
|
<static> |
de.aitools.js.TermFrequency.setVocabulary(vocabulary)
Set a vocabulary to use in document
representation process.
|
Class Detail
de.aitools.js.TermFrequency()
Implementation of TermFrequency as representation function to be used in a
retrieval model
Author: Christof Braeutigam christof.braeutigam@uni-weimar.de.
Author: Christof Braeutigam christof.braeutigam@uni-weimar.de.
Method Detail
<static>
{Object}
de.aitools.js.TermFrequency.getBackStemming()
Returns the backstemming map that is created while document
representation.
- Returns:
- {Object} the backstemming map
<static>
{de.aitools.js.Vocabulary}
de.aitools.js.TermFrequency.getVocabulary()
Returns the vocabulary that is created
while document representation.
- Returns:
- {de.aitools.js.Vocabulary} the vocabulary
<static>
{de.aitools.js.Vector}
de.aitools.js.TermFrequency.representDocument(document)
Creates and returns a vector space representation with the term frequency
model. The representation is a Vector
- Parameters:
- {de.aitools.js.Document} document
- The document to represent.
- Returns:
- {de.aitools.js.Vector} A vector space representation of the document.
- See:
- de.aitools.js.Vector
<static>
de.aitools.js.TermFrequency.setDynamicStopwords(wordsArray)
- Parameters:
- wordsArray
<static>
de.aitools.js.TermFrequency.setRemoveStopwords(bool)
Activate or deactivate stopword removal.
- Parameters:
- {boolean} bool
- Activate (true) or deactivate (false) stopword removal.
<static>
de.aitools.js.TermFrequency.setStemming(bool)
Activate or deactivate stemming.
- Parameters:
- {boolean} bool
- Activate (true) or deactivate (false) stemming.
<static>
de.aitools.js.TermFrequency.setVocabulary(vocabulary)
Set a vocabulary to use in document
representation process. Without specifying a vocabulary by this function,
a empty vocabulary is used. The vocabulary will be modified, i.e. new
terms will be added.
- Parameters:
- {de.aitools.js.Vocabulary} vocabulary
- The vocabulary to use.