public class ERXYahooContentAnalysisService
extends java.lang.Object
| Constructor and Description |
|---|
ERXYahooContentAnalysisService() |
| Modifier and Type | Method and Description |
|---|---|
static 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.
|
public static 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
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 unlimitedjava.io.IOExceptionorg.xml.sax.SAXExceptionjavax.xml.parsers.ParserConfigurationExceptionjavax.xml.parsers.FactoryConfigurationErrorCopyright © 2002 – 2022 Project Wonder.