com.xpn.xwiki.plugin.autotag
Class AutoTagPluginAPI
java.lang.Object
com.xpn.xwiki.api.Api
com.xpn.xwiki.plugin.PluginApi<AutoTagPlugin>
com.xpn.xwiki.plugin.autotag.AutoTagPluginAPI
Deprecated. the plugin technology is deprecated, consider rewriting as components
@Deprecated
public class AutoTagPluginAPI
- extends PluginApi<AutoTagPlugin>
Plugin which extracts a set of tags from a text.
- Version:
- $Id: 19f59dda45e187310045a42bc0b0ac8869e8f1e3 $
Fields inherited from class com.xpn.xwiki.api.Api |
context |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AutoTagPluginAPI
public AutoTagPluginAPI(AutoTagPlugin plugin,
XWikiContext context)
- Deprecated.
- API constructor. The API must know the plugin object it wraps, and the request context.
- Parameters:
plugin
- The wrapped plugin object.context
- Context of the request.
generateTagCloud
public TagCloud generateTagCloud(String text,
int lang)
- Deprecated.
- Analyze a piece of text, and extract the most common words into a "tag cloud". In detail, this splits the text
into tokens, counts how many times each token appears in the text, removes the "stop-words", joins together words
from the same root (stemming), and prepares an HTML tag cloud which can be printed in the response.
- Parameters:
text
- the text to analyzelang
- the language in which the text is written, 0
for French or 1
for English
- Returns:
- the resulting TagCloud with all the analyzed data, including the HTML tag cloud
generateTagCloud
public TagCloud generateTagCloud(String text,
String lang)
- Deprecated.
- Analyze a piece of text, and extract the most common words into a "tag cloud". In detail, this splits the text
into tokens, counts how many times each token appears in the text, removes the "stop-words", joins together words
from the same root (stemming), and prepares an HTML tag cloud which can be printed in the response.
- Parameters:
text
- the text to analyzelang
- the language in which the text is written, one of en
or fr
- Returns:
- the resulting TagCloud with all the analyzed data, including the HTML tag cloud
Copyright © 2004-2013 XWiki. All Rights Reserved.