Table of Contents
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