Method | Description | |
---|---|---|
AddDocument ( uint documentID, uint>.IDictionary |
||
BagOfWords ( ) : System | ||
BagOfWords ( Term>.IDictionary |
||
BagOfWords ( IEnumerable |
||
ContainsDocument ( uint docID ) : bool | ||
GetSimilarity ( uint>.IDictionary |
Calculates the cosine similarity of the given strings (normally words) compared to the current collection of Terms.
|
|
RecalculateIDFs ( ) : void | ||
RemoveDocument ( uint documentID, uint>.IDictionary |
Method | Description | |
---|---|---|
CalculateDocumentLength ( uint docID, List |
||
CalculateQueryLength ( float>.Dictionary |
||
CalculateQueryTfIdfVector ( uint>.IDictionary |
public AddDocument ( uint documentID, uint>.IDictionary |
||
documentID | uint | |
termTFs | uint>.IDictionary | |
return | void |
public BagOfWords ( Term>.IDictionary |
||
terms | Term>.IDictionary | |
idfsCalculated | bool | |
return | System |
public BagOfWords ( IEnumerable |
||
terms | IEnumerable |
|
idfsCalculated | bool | |
return | System |
public ContainsDocument ( uint docID ) : bool | ||
docID | uint | |
return | bool |
public GetSimilarity ( uint>.IDictionary |
||
terms | uint>.IDictionary | A collection of tokens (i.e., words) for a given string. |
maxDocsToReturn | uint | |
return | float>.Dictionary |
public RemoveDocument ( uint documentID, uint>.IDictionary |
||
documentID | uint | |
termTFs | uint>.IDictionary | |
return | void |