|
Carrot2 v3.6.0-SNAPSHOT
API Documentation |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.carrot2.text.vsm.LogTfIdfTermWeighting
public class LogTfIdfTermWeighting
Calculates term-document matrix element values based on Term Frequency.
| Constructor Summary | |
|---|---|
LogTfIdfTermWeighting()
|
|
| Method Summary | |
|---|---|
double |
calculateTermWeight(int termFrequency,
int documentFrequency,
int documentCount)
Calculates the weight of a term for a single document. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LogTfIdfTermWeighting()
| Method Detail |
|---|
public double calculateTermWeight(int termFrequency,
int documentFrequency,
int documentCount)
ITermWeighting
calculateTermWeight in interface ITermWeightingtermFrequency - frequency of the term in the documentdocumentFrequency - the number of documents containing the termdocumentCount - total number of documents
|
Please refer to project documentation at
http://project.carrot2.org |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||