nlp_metrics

Table of Contents#


sidebar_label: nlp_metrics

title: whylogs.core.metrics.nlp_metrics#

NLPMetrics Objects#

class NLPMetrics()

update#

| update(predictions: Union[List[str], str], targets: Union[List[str]], transform=None) -> None

Function adds predictions and targets computation of nlp metrics.

Arguments:

predictions (Union[str,List[str]]): targets (Union[List[str],str]):

merge#

| merge(other: "NLPMetrics") -> "NLPMetrics"

Merge two seperate nlp metrics

Arguments:

other : nlp metrics to merge with self

Returns:

  • NLPMetrics - merged nlp metrics

to_protobuf#

| to_protobuf() -> NLPMetricsMessage

Convert to protobuf

Returns:

  • TYPE - Protobuf Message
Prefooter Illustration Mobile
Run AI With Certainty
Get started for free
Prefooter Illustration