This module provides just an API-Interface for the RoboTagger web service from http://robotagger.com.

The RoboTagger web service supports at the moment only german text.

Current RoboTagger server host:
http://ws.robotagger.com

Requirements:

Usage

Function

In order to use the web service use the function robotagger_api_call_webservice($text, $annotation, $langcode, $cache, $topics, $returnerror).

Parameters

$text = The content which should be analyzed.
$annotation = An array of annotations (See http://robotagger.com/dokumentation)
$langcode = The language code of language. Ex. de for german.
$cache = TRUE/FALSE Cache the response or not. (Default: TRUE)
$topics = An array of topics. (Optional)
$returnerror = TRUE/FALSE If TRUE it returns an array with the keys errorcode and errormessage

Example

<?php
$mylongtext = 'Wir lieben Drupal!';
$annotation = array('IT', 'Software');
$response = robotagger_api_call_webservice($mylongtext, $annotation, 'de', TRUE, array('CMS', 'PHP'), TRUE);
if (empty($response['errorcode'])) {
 do_something();
}

?>

Required by:

Project Information

Downloads