public class Counters extends Object
Constructor and Description |
---|
Counters() |
Modifier and Type | Method and Description |
---|---|
void |
addResult(Map<String,String> result) |
void |
addResultDouble(Map<String,Double> result) |
Object |
getField(String key) |
String |
getFullResults()
Returns the scores as a CSV string (without any label).
|
String |
getFullResults(boolean withLabel)
Returns the scores are CSV.
|
String |
getFullResults(boolean withLabel,
CompressionLevel compressionLevel) |
String |
getLanguageMap(boolean withLabel) |
String |
getProblemList(boolean withLabel,
CompressionLevel compressionLevel) |
String |
getRecordId() |
Map<String,String> |
getResults() |
String |
getResultsAsCSV(boolean withLabel) |
String |
getResultsAsCSV(boolean withLabel,
CompressionLevel compressionLevel) |
List<String> |
getResultsAsList() |
List<String> |
getResultsAsList(boolean withLabel) |
List<String> |
getResultsAsList(boolean withLabel,
CompressionLevel compressionLevel) |
String |
getResultsAsTSV(boolean withLabel) |
Map<String,Double> |
getResultsDouble() |
String |
getTfIdfList(boolean withLabel) |
void |
returnFieldExistenceList(boolean returnFieldExistenceList) |
void |
returnFieldInstanceList(boolean returnFieldInstanceList) |
void |
returnLanguage(boolean returnLanguage) |
void |
returnProblemList(boolean returnProblems) |
void |
returnTfIdfList(boolean returnTfIdf) |
void |
setField(String key,
Object value) |
void |
setLanguageMap(Map<String,String> languageMap) |
void |
setProblemList(Map<String,Double> problemList) |
void |
setRecordId(String recordId) |
void |
setTfIdfList(Map<String,Double> tdIdf) |
public List<String> getResultsAsList(boolean withLabel, CompressionLevel compressionLevel)
public String getResultsAsTSV(boolean withLabel)
public String getResultsAsCSV(boolean withLabel)
public String getResultsAsCSV(boolean withLabel, CompressionLevel compressionLevel)
public String getTfIdfList(boolean withLabel)
public String getProblemList(boolean withLabel, CompressionLevel compressionLevel)
public String getLanguageMap(boolean withLabel)
public String getRecordId()
public void setRecordId(String recordId)
public String getFullResults()
public String getFullResults(boolean withLabel)
withLabel
- Return labelspublic String getFullResults(boolean withLabel, CompressionLevel compressionLevel)
public void returnFieldExistenceList(boolean returnFieldExistenceList)
public void returnFieldInstanceList(boolean returnFieldInstanceList)
public void returnTfIdfList(boolean returnTfIdf)
public void returnProblemList(boolean returnProblems)
public void returnLanguage(boolean returnLanguage)
Copyright © 2020. All rights reserved.