Parser/Extractor Count

Kyle Nakamoto's Avatar

Kyle Nakamoto

05 Nov, 2009 11:38 PM via web

I'm using parsers and extractors on one of the columns of my input database. From the space that is created, is there a query (api/rest) I can call to determine how many words were created from the field?

  1. Support Staff 2 Posted by Jim Fleming on 07 Nov, 2009 01:41 AM

    Jim Fleming's Avatar

    Kyle, you can get the resource and count the number of extracted attributes under the attribute corresponding to the field.
    /Jim

  2. 3 Posted by Kyle Nakamoto on 09 Nov, 2009 04:15 PM

    Kyle Nakamoto's Avatar

    In reading your repsonse, my understanding is it would report information based upon the entire column of data. This probably has to do with my being unclear in my request. I'd like to further clarify. Using a database source, the column of data is being extracted and parsed. For any particular row, I'd like to determine the number and type of attributes created from the particular text.

    Does the solution you've proposed still apply to the clarified problem? In a followup question, what happens if there are multiple text columns that are parsed and extracted into nouns/verbs/etc? Does the proposed solution allow one to distinguish counts between the two columns?

  3. Support Staff 4 Posted by Jim Fleming on 09 Nov, 2009 04:50 PM

    Jim Fleming's Avatar

    Kyle, If you retrieve the resource, corresponding to the row in your DB, you will get that row after it's been parsed. As a result you can get the parent text field (DB col) along with all the extracted attributes (nouns, verbs, etc) from that field. This is true for all columns in that record. As a result, you will be able to see where the nouns, verbs came from since they are structured as sub collections of the original column attribute in the Saffron resource.

    I think the best way to see this is to retrieve a resource out of the system to see how it looks.

    Thanks,
    Jim

  4. Support Staff 5 Posted by Jim Fleming on 04 May, 2010 08:36 PM

    Jim Fleming's Avatar

    Issue has been resolved.

  5. Jim Fleming closed this discussion on 04 May, 2010 08:36 PM.

Comments are currently closed for this discussion. You can start a new one.