Project Wonder 5.0

er.extensions.components.javascript
Class ERXYahooContentAnalysisService

java.lang.Object
  extended by er.extensions.components.javascript.ERXYahooContentAnalysisService

public class ERXYahooContentAnalysisService
extends java.lang.Object

Provides an interface to the Yahoo Content Analysis Service.

Author:
mschrag

Constructor Summary
ERXYahooContentAnalysisService()
           
 
Method Summary
static com.webobjects.foundation.NSArray<java.lang.String> termExtraction(java.lang.String appid, java.lang.String content, java.lang.String context, java.lang.Integer maxTerms)
          Returns a term extraction of significant words or phrases from the given content using the Yahoo Term Extraction service: http://developer.yahoo.com/search/content/V1/termExtraction.html.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ERXYahooContentAnalysisService

public ERXYahooContentAnalysisService()
Method Detail

termExtraction

public static com.webobjects.foundation.NSArray<java.lang.String> termExtraction(java.lang.String appid,
                                                                                 java.lang.String content,
                                                                                 java.lang.String context,
                                                                                 java.lang.Integer maxTerms)
                                                                          throws java.io.IOException,
                                                                                 org.xml.sax.SAXException,
                                                                                 javax.xml.parsers.ParserConfigurationException,
                                                                                 javax.xml.parsers.FactoryConfigurationError
Returns a term extraction of significant words or phrases from the given content using the Yahoo Term Extraction service: http://developer.yahoo.com/search/content/V1/termExtraction.html.

Parameters:
appid - your Yahoo application ID (see https://developer.yahoo.com/wsregapp/ )
content - the content to extract terms from
context - an optional search phrase that can provide context for the term extraction
maxTerms - the maximum number of terms to return, or null for unlimited
Returns:
an array of extract terms
Throws:
java.io.IOException
org.xml.sax.SAXException
javax.xml.parsers.ParserConfigurationException
javax.xml.parsers.FactoryConfigurationError

Last updated: Tue, Feb 21, 2017 • 05:45 PM CET

Copyright © 2002 – 2007 Project Wonder.