public class ArticlesTFs
extends java.lang.Object
Constructor and Description |
---|
ArticlesTFs(java.lang.String language,
java.lang.String path)
Constructor for the class.
|
Modifier and Type | Method and Description |
---|---|
void |
calculateTFs(java.lang.String file)
Estimates the TF for all the terms in file
file and writes the
resulting List<TermFrequencyTuple> in a file with the same name as
the text file but in folder "tfs" instead of "plain" |
static void |
main(java.lang.String[] args)
Main function to run the class, serves as example
|
public ArticlesTFs(java.lang.String language, java.lang.String path)
public void calculateTFs(java.lang.String file)
file
and writes the
resulting List<TermFrequencyTuple>
in a file with the same name as
the text file but in folder "tfs" instead of "plain"file
- public static void main(java.lang.String[] args)
args
- -l Language of the articles
-p Path to the root folder for the given language