ferret.Benchmark.score#
- Benchmark.score(text: str, return_dict: bool = True, **kwargs)[source]#
Compute prediction scores for a single query
- Parameters:
str (text) – query to compute the logits from
bool (return_dict) – return a dict in the format Class Label -> score. Otherwise, return softmaxed logits as torch.Tensor. Default True