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

파일 보기 프로젝트 열기: yvettec/Dupes 1 사용 예제들

공개 메소드들

메소드 설명
AddDocument ( uint documentID, uint>.IDictionary termTFs ) : void
BagOfWordsBeta ( ) : System
BagOfWordsBeta ( 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>.Dictionary tfs ) : 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

BagOfWordsBeta() 공개 메소드

public BagOfWordsBeta ( ) : System
리턴 System

BagOfWordsBeta() 공개 메소드

public BagOfWordsBeta ( 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