1

I use

ClipboardManager.primaryClipDescription.getConfidenceScore(TextClassifier.TYPE_URL)

every call returns java.lang.IllegalStateException: Classification not complete.

How to get the probability of data from the clipboard?

Dinesh
  • 1,410
  • 2
  • 16
  • 29
  • I have no clue what it does, but reading from the docs - Returns a score indicating confidence that an instance of the given entity is present in the first item of the clip data, **if that item is plain text and text classification has been performed** maybe text classification was not performed? – Dan Baruch Oct 26 '21 at 08:14
  • The problem is that it always fails no matter what the content. – cHz4zBykvke Oct 26 '21 at 08:25
  • Well, as I said, I'm not familiar at all with those functions and what they do, but maybe the content you are checking, all of it, was not classified? don't even know what it means – Dan Baruch Oct 26 '21 at 08:29

0 Answers0