Resolved Nuance Recognizer: How do I find the confidence score associated with a word?

Discussion in 'iOS Programming' started by moonman239, Oct 14, 2013.

  1. moonman239, Oct 14, 2013
    Last edited: Oct 15, 2013

    moonman239 macrumors 68000

    Joined:
    Mar 27, 2009
    #1
    I am creating a project to help other people learn a foreign language. I want to set my app so that if there's a good chance the user said what he or she was supposed to say, the app will display a green checkmark.

    I know I can use the scores array, but it has a lower count than the results array.
     
  2. moonman239 thread starter macrumors 68000

    Joined:
    Mar 27, 2009
    #2
    OK, this is really weird, but [[results results] count] gives a different count than the variable watcher. The variable watcher says the array contains 5 objects. Something is wrong here, but I can't put my finger on it.
     
  3. dejo Moderator

    dejo

    Staff Member

    Joined:
    Sep 2, 2004
    Location:
    The Centennial State
  4. chown33 macrumors 604

    Joined:
    Aug 9, 2009
    Location:
    Brobdingnag
    #4
    Without code, no one can.
     
  5. moonman239 thread starter macrumors 68000

    Joined:
    Mar 27, 2009
    #5
    That is the "results" property of the SKRecognizer object "results".
     
  6. dejo Moderator

    dejo

    Staff Member

    Joined:
    Sep 2, 2004
    Location:
    The Centennial State
    #6
    That is very confusing variable naming. I would certainly redo it.
     
  7. moonman239 thread starter macrumors 68000

    Joined:
    Mar 27, 2009
    #7
    Update: I figured out why the code I used was not working properly. The "results" array returns capitalized strings, and I searched the array for a non-capitalized string.

    EDIT: The solution I have is not the one I want, but I am going to mark this thread as resolved anyway.
     
  8. dejo Moderator

    dejo

    Staff Member

    Joined:
    Sep 2, 2004
    Location:
    The Centennial State

Share This Page