C# 클래스 Ada.Matchers.BoWPoS.BagOfWords

파일 보기 프로젝트 열기: yvettec/Dupes

공개 메소드들

메소드 설명
AddDocument ( uint documentID, uint>.IDictionary termTFs ) : void
BagOfWords ( ) : System
BagOfWords ( Term>.IDictionary terms, bool idfsCalculated = false ) : System
BagOfWords ( IEnumerable terms, bool idfsCalculated = false ) : System
ContainsDocument ( uint docID ) : bool
GetSimilarity ( uint>.IDictionary terms, uint maxDocsToReturn ) : float>.Dictionary

Calculates the cosine similarity of the given strings (normally words) compared to the current collection of Terms.

RecalculateIDFs ( ) : void
RemoveDocument ( uint documentID, uint>.IDictionary termTFs ) : void

비공개 메소드들

메소드 설명
CalculateDocumentLength ( uint docID, List terms ) : float
CalculateQueryLength ( float>.Dictionary queryVector ) : float
CalculateQueryTfIdfVector ( uint>.IDictionary tf ) : float>.Dictionary

메소드 상세

AddDocument() 공개 메소드

public AddDocument ( uint documentID, uint>.IDictionary termTFs ) : void
documentID uint
termTFs uint>.IDictionary
리턴 void

BagOfWords() 공개 메소드

public BagOfWords ( ) : System
리턴 System

BagOfWords() 공개 메소드

public BagOfWords ( Term>.IDictionary terms, bool idfsCalculated = false ) : System
terms Term>.IDictionary
idfsCalculated bool
리턴 System

BagOfWords() 공개 메소드

public BagOfWords ( IEnumerable terms, bool idfsCalculated = false ) : System
terms IEnumerable
idfsCalculated bool
리턴 System

ContainsDocument() 공개 메소드

public ContainsDocument ( uint docID ) : bool
docID uint
리턴 bool

GetSimilarity() 공개 메소드

Calculates the cosine similarity of the given strings (normally words) compared to the current collection of Terms.
public GetSimilarity ( uint>.IDictionary terms, uint maxDocsToReturn ) : float>.Dictionary
terms uint>.IDictionary A collection of tokens (i.e., words) for a given string.
maxDocsToReturn uint
리턴 float>.Dictionary

RecalculateIDFs() 공개 메소드

public RecalculateIDFs ( ) : void
리턴 void

RemoveDocument() 공개 메소드

public RemoveDocument ( uint documentID, uint>.IDictionary termTFs ) : void
documentID uint
termTFs uint>.IDictionary
리턴 void