Package ai.tock.nlp.front.shared.test
Class TestBuild
-
- All Implemented Interfaces:
public final class TestBuildA build used to test the model.
-
-
Field Summary
Fields Modifier and Type Field Description private final Id<ApplicationDefinition>applicationIdprivate final Localelanguageprivate final InstantstartDateprivate final DurationbuildModelDurationprivate final DurationtestSentencesDurationprivate final IntegernbSentencesInModelprivate final IntegernbSentencesTestedprivate final IntegernbErrorsprivate final IntegerintentErrorsprivate final IntegerentityErrorsprivate final Map<String, Integer>nbSentencesTestedByIntentprivate final Map<String, Integer>intentErrorsByIntentprivate final Map<String, Integer>entityErrorsByIntent
-
Constructor Summary
Constructors Constructor Description TestBuild(Id<ApplicationDefinition> applicationId, Locale language, Instant startDate, Duration buildModelDuration, Duration testSentencesDuration, Integer nbSentencesInModel, Integer nbSentencesTested, Integer nbErrors, Integer intentErrors, Integer entityErrors, Map<String, Integer> nbSentencesTestedByIntent, Map<String, Integer> intentErrorsByIntent, Map<String, Integer> entityErrorsByIntent)
-
Method Summary
Modifier and Type Method Description final Id<ApplicationDefinition>getApplicationId()The application id to test. final LocalegetLanguage()The tested language. final InstantgetStartDate()Start of the build. final DurationgetBuildModelDuration()Duration of the build. final DurationgetTestSentencesDuration()Duration of sentences tests. final IntegergetNbSentencesInModel()Number of sentences included in the model. final IntegergetNbSentencesTested()Number of sentences tested. final IntegergetNbErrors()Number of errors. final IntegergetIntentErrors()Number of intent errors. final IntegergetEntityErrors()Number of entity errors final Map<String, Integer>getNbSentencesTestedByIntent()Number of sentences tested by intent. final Map<String, Integer>getIntentErrorsByIntent()Number of intent errors by intent. final Map<String, Integer>getEntityErrorsByIntent()Number of entity errors by intent. -
-
Constructor Detail
-
TestBuild
TestBuild(Id<ApplicationDefinition> applicationId, Locale language, Instant startDate, Duration buildModelDuration, Duration testSentencesDuration, Integer nbSentencesInModel, Integer nbSentencesTested, Integer nbErrors, Integer intentErrors, Integer entityErrors, Map<String, Integer> nbSentencesTestedByIntent, Map<String, Integer> intentErrorsByIntent, Map<String, Integer> entityErrorsByIntent)
-
-
Method Detail
-
getApplicationId
final Id<ApplicationDefinition> getApplicationId()
The application id to test.
-
getLanguage
final Locale getLanguage()
The tested language.
-
getStartDate
final Instant getStartDate()
Start of the build.
-
getBuildModelDuration
final Duration getBuildModelDuration()
Duration of the build.
-
getTestSentencesDuration
final Duration getTestSentencesDuration()
Duration of sentences tests.
-
getNbSentencesInModel
final Integer getNbSentencesInModel()
Number of sentences included in the model.
-
getNbSentencesTested
final Integer getNbSentencesTested()
Number of sentences tested.
-
getNbErrors
final Integer getNbErrors()
Number of errors.
-
getIntentErrors
final Integer getIntentErrors()
Number of intent errors.
-
getEntityErrors
final Integer getEntityErrors()
Number of entity errors
-
getNbSentencesTestedByIntent
final Map<String, Integer> getNbSentencesTestedByIntent()
Number of sentences tested by intent.
-
getIntentErrorsByIntent
final Map<String, Integer> getIntentErrorsByIntent()
Number of intent errors by intent.
-
getEntityErrorsByIntent
final Map<String, Integer> getEntityErrorsByIntent()
Number of entity errors by intent.
-
-
-
-