Class AutoTagPluginAPI


  • @Deprecated
    public class AutoTagPluginAPI
    extends PluginApi<AutoTagPlugin>
    Deprecated.
    the plugin technology is deprecated, consider rewriting as components
    Plugin which extracts a set of tags from a text.
    Version:
    $Id: 19f59dda45e187310045a42bc0b0ac8869e8f1e3 $
    • Constructor Detail

      • 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.
    • Method Detail

      • 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 analyze
        lang - 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 analyze
        lang - 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