er.extensions.components.javascript
Class ERXYahooContentAnalysisService
java.lang.Object
er.extensions.components.javascript.ERXYahooContentAnalysisService
public class ERXYahooContentAnalysisService
- extends Object
Provides an interface to the Yahoo Content Analysis Service.
- Author:
- mschrag
|
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 |
ERXYahooContentAnalysisService
public ERXYahooContentAnalysisService()
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 fromcontext - an optional search phrase that can provide context for the
term extractionmaxTerms - the maximum number of terms to return, or null for unlimited
- Returns:
- an array of extract terms
- Throws:
IOException
SAXException
ParserConfigurationException
FactoryConfigurationError
Copyright © 2002 – 2007 Project Wonder.