Метод | Описание | |
---|---|---|
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 |
Метод | Описание | |
---|---|---|
CalculateDocumentLength ( uint docID, List |
||
CalculateQueryLength ( float>.Dictionary |
||
CalculateQueryTfIdfVector ( uint>.IDictionary |
public AddDocument ( uint documentID, uint>.IDictionary |
||
documentID | uint | |
termTFs | uint>.IDictionary | |
Результат | void |
public BagOfWords ( Term>.IDictionary |
||
terms | Term>.IDictionary | |
idfsCalculated | bool | |
Результат | System |
public BagOfWords ( IEnumerable |
||
terms | IEnumerable |
|
idfsCalculated | bool | |
Результат | System |
public ContainsDocument ( uint docID ) : bool | ||
docID | uint | |
Результат | bool |
public GetSimilarity ( uint>.IDictionary |
||
terms | uint>.IDictionary | A collection of tokens (i.e., words) for a given string. |
maxDocsToReturn | uint | |
Результат | float>.Dictionary |
public RemoveDocument ( uint documentID, uint>.IDictionary |
||
documentID | uint | |
termTFs | uint>.IDictionary | |
Результат | void |