Project Wonder 5.0.0.8787

er.extensions.components.javascript
Class ERXYahooContentAnalysisService

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

public class ERXYahooContentAnalysisService
extends Object

Provides an interface to the Yahoo Content Analysis Service.

Author:
mschrag

Constructor Summary
ERXYahooContentAnalysisService()
           
 
Method Summary
static NSArray<String> termExtraction(String appid, String content, String context, 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 NSArray<String> termExtraction(String appid,
                                             String content,
                                             String context,
                                             Integer maxTerms)
                                      throws IOException,
                                             SAXException,
                                             ParserConfigurationException,
                                             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:
IOException
SAXException
ParserConfigurationException
FactoryConfigurationError

Last updated: Wed, Jan 7, 2009 • 04:35 AM EST

Copyright © 2002 – 2007 Project Wonder.