er.extensions.components.javascript
Class ERXYahooContentAnalysisService
java.lang.Object
er.extensions.components.javascript.ERXYahooContentAnalysisService
public class ERXYahooContentAnalysisService
- extends java.lang.Object
Provides an interface to the Yahoo Content Analysis Service.
- Author:
- mschrag
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 |
ERXYahooContentAnalysisService
public ERXYahooContentAnalysisService()
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 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:
java.io.IOException
org.xml.sax.SAXException
javax.xml.parsers.ParserConfigurationException
javax.xml.parsers.FactoryConfigurationError
Copyright © 2002 – 2007 Project Wonder.