Method Train
Train(AtomicReader, String, String, Analyzer)
Train the classifier using the underlying Lucene index
Declaration
void Train(AtomicReader atomicReader, string textFieldName, string classFieldName, Analyzer analyzer)
Parameters
Type | Name | Description |
---|---|---|
AtomicReader | atomicReader | the reader to use to access the Lucene index |
System.String | textFieldName | the name of the field used to compare documents |
System.String | classFieldName | the name of the field containing the class assigned to documents |
Analyzer | analyzer | the analyzer used to tokenize / filter the unseen text |
Train(AtomicReader, String, String, Analyzer, Query)
Train the classifier using the underlying Lucene index
Declaration
void Train(AtomicReader atomicReader, string textFieldName, string classFieldName, Analyzer analyzer, Query query)
Parameters
Type | Name | Description |
---|---|---|
AtomicReader | atomicReader | the reader to use to access the Lucene index |
System.String | textFieldName | the name of the field used to compare documents |
System.String | classFieldName | the name of the field containing the class assigned to documents |
Analyzer | analyzer | the analyzer used to tokenize / filter the unseen text |
Query | query | the query to filter which documents use for training |
Train(AtomicReader, String[], String, Analyzer, Query)
Train the classifier using the underlying Lucene index
Declaration
void Train(AtomicReader atomicReader, string[] textFieldNames, string classFieldName, Analyzer analyzer, Query query)
Parameters
Type | Name | Description |
---|---|---|
AtomicReader | atomicReader | the reader to use to access the Lucene index |
System.String[] | textFieldNames | the names of the fields to be used to compare documents |
System.String | classFieldName | the name of the field containing the class assigned to documents |
Analyzer | analyzer | the analyzer used to tokenize / filter the unseen text |
Query | query | the query to filter which documents use for training |