Skip to content

Commit

Permalink
[ML] Add placeholder text for testing NER models
Browse files Browse the repository at this point in the history
  • Loading branch information
lcawl committed May 19, 2022
1 parent d8a6258 commit 974a7c3
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,13 @@ export class NerInference extends InferenceBase<NerResponse> {
}

public getInputComponent(): JSX.Element {
return getGeneralInputComponent(this);
const placeholder = i18n.translate(
'xpack.ml.trainedModels.testModelsFlyout.ner.inputText',
{
defaultMessage: 'Enter a phrase to test.',
}
);
return getGeneralInputComponent(this, placeholder);
}

public getOutputComponent(): JSX.Element {
Expand Down

0 comments on commit 974a7c3

Please sign in to comment.