Class Corpus
- All Implemented Interfaces:
com.ibm.cloud.sdk.core.service.model.ObjectModel
public class Corpus
extends com.ibm.cloud.sdk.core.service.model.GenericModel
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceCorpus.StatusThe status of the corpus: * `analyzed`: The service successfully analyzed the corpus. -
Constructor Summary
Constructors Constructor Description Corpus() -
Method Summary
Modifier and Type Method Description StringgetError()Gets the error.StringgetName()Gets the name.LonggetOutOfVocabularyWords()Gets the outOfVocabularyWords.StringgetStatus()Gets the status.LonggetTotalWords()Gets the totalWords.Methods inherited from class com.ibm.cloud.sdk.core.service.model.GenericModel
equals, hashCode, toString
-
Constructor Details
-
Corpus
public Corpus()
-
-
Method Details
-
getName
Gets the name.The name of the corpus.
- Returns:
- the name
-
getTotalWords
Gets the totalWords.The total number of words in the corpus. The value is `0` while the corpus is being processed.
- Returns:
- the totalWords
-
getOutOfVocabularyWords
Gets the outOfVocabularyWords.The number of OOV words in the corpus. The value is `0` while the corpus is being processed.
- Returns:
- the outOfVocabularyWords
-
getStatus
Gets the status.The status of the corpus: * `analyzed`: The service successfully analyzed the corpus. The custom model can be trained with data from the corpus. * `being_processed`: The service is still analyzing the corpus. The service cannot accept requests to add new resources or to train the custom model. * `undetermined`: The service encountered an error while processing the corpus. The `error` field describes the failure.
- Returns:
- the status
-
getError
Gets the error.If the status of the corpus is `undetermined`, the following message: `Analysis of corpus 'name' failed. Please try adding the corpus again by setting the 'allow_overwrite' flag to 'true'`.
- Returns:
- the error
-