facebook / duckling

Language, engine, and tooling for expressing, testing, and evaluating composable language rules on input strings.
Other
4.05k stars 723 forks source link

Local server doesn't show confidence #614

Closed 1dolinski closed 3 years ago

1dolinski commented 3 years ago

Is there a way to display the confidence value on local? The web api shows confidence.

[
  {
    body: "this weekend",
    start: 0,
    value: {
      values: [
        {
          to: { value: "2021-04-05T00:00:00.000-07:00", grain: "hour" },
          from: { value: "2021-04-02T18:00:00.000-07:00", grain: "hour" },
          type: "interval",
        },
      ],
      to: { value: "2021-04-05T00:00:00.000-07:00", grain: "hour" },
      from: { value: "2021-04-02T18:00:00.000-07:00", grain: "hour" },
      type: "interval",
    },
    end: 12,
    dim: "time",
    latent: false,
  },
];
chessai commented 3 years ago

Can you show some output from the web api that shows what you're talking about?

I suspect that it's the confidence from wit, not duckling, in which case there's nothing to do.