Hi,
I have extracted the key word using an external tools into drupal system. I used MAUI keyword indexing tools to extract keyword. Now I want to create a taxonomy vocabulary by using those extracted keyword. then later on I will use these vocabulary terms for rules autotags. To extract the keyword from MAUI I followed the steps:
1.Content-> add content-> article. A form window will open to create article content
2. copy anykind of article and paste it in the body field of the form.
3. Can see check box with options. select the option Maui keyword extraction from then content analysis option.
4. Click Analyze Content.
then it will run the following code and send the content to a text file in the spectic folder I have mentioned in the code. This code also run MAUI tools and extract the keyword in a file with extention .key. I named the file mauikeywordextractor.module:

<?php

// $Id: mauikeywordextractor.module,v 1.6 2010/05/09 19:55:26 tomdude48 Exp $

/**
* @file
* An example content analyzer using the Content Analysis API
*/
function mauikeywordextractor_menu() {
$items = array();

$items['admin/settings/mauikeywordextractor'] = array(
'title' => 'Search engine terms',
'description' => 'Get keywords from search engines.',
'page callback' => 'drupal_get_form',
'page arguments' => array('mauikeywordextractor_admin_settings'),
'access callback' => 'user_access',
'access arguments' => array('admin content analysis'),
'type' => MENU_NORMAL_ITEM,
//'file' => 'mauikeywordextractor.admin.inc',
);

return $items;
}

/**
* Implentation of hook_contentanalysis_analyzers()
* register contentanalysisexample with contentanalysis analyzers registry
*/
function mauikeywordextractor_contentanalysis_analyzers() {
$analyzers['mauikeywordextractor'] = array(
'title' => t('MAUI Keyword Extractor'),
'module' => 'mauikeywordextractor',
'callback' => 'mauikeywordextractor_analyzer',
//'form elements callback' => 'mauikeywordextractor_analyzer_form_elements',
//'node form submit callback' => 'mauikeywordextractor_node_form_submit',
'weight' => -5,
);
return $analyzers;
}

/**
* Implementation of hook_analyzer() via custom define callback
*
* Performs the analysis.
* callback is defined in hook_contentanalysis_analyzers ['callback']
*
* @param unknown_type $context
* Array context format defined by contentanalysis.module
* @param unknown_type $analysis
* Array analysis format defined by contentanalysis.module
* @param unknown_type $params
* Array customer defined paramters
*/
function mauikeywordextractor_analyzer($context, $analysis, $params) {

// call maui implementation with the parameters $context['body']

$terms = mauikeywordextractor_autokeyword($context, $analysis);

$rows = array();
$header1 = array(
array('data' => t('Term')),
//array('data' => t('Relevance')),
);
if (is_array($terms)) {
foreach ($terms as $v) {
$rows[] = array(
"" . $v . ""
// "" . $v . ""
);
}
}
if (!$rows) {
$rows[] = array(array(
'data' => t('No keywords available.'),
'colspan' => count($header),
));
}

$out = theme('table', array('header' => $header, 'rows' => $rows));

$analysis['content'][] = contentanalysis_format_content($out, -1);

// send out content into a text file

if (isset($_POST['analyzers'])) {
$content = $_POST['body'];
$file = fopen("/home/rowshan/Downloads/Maui1.2/data/automatic_tagging/train/merge/content.txt", "w");
fwrite($file, $content);
fclose($file);
// print_r(error_get_last());
}

return $analysis;
}

/**
* @todo Please document this function.
* @see http://drupal.org/node/1354
*/
function mauikeywordextractor_autokeyword($context, &$analysis = NULL) {
/*
* Run maui from drupal
*
*/
$lf = fopen("/tmp/log.txt", "w"); //error log

exec("java -cp /home/rowshan/Downloads/Maui1.2/bin:/home/rowshan/Downloads/Maui1.2/lib/* maui.main.MauiModelBuilder -l /home/rowshan/Downloads/Maui1.2/data/automatic_tagging/train/merge/ -m test -v none");
exec("java -cp /home/rowshan/Downloads/Maui1.2/bin:/home/rowshan/Downloads/Maui1.2/lib/* maui.main.MauiTopicExtractor -l /home/rowshan/Downloads/Maui1.2/data/automatic_tagging/train/merge/ -m test -v none");

// get te file content into drupal
$filename = "/home/rowshan/Downloads/Maui1.2/data/automatic_tagging/train/merge/content.key";
fwrite($lf, "full-content: " . file_get_contents($filename));
$terms = array();
$handle = fopen($filename, "r"); // handle input files ,reading input file
while ($line = fgets($handle)) {
fwrite($lf, "line: " . $line );
array_push($terms, $line);
}
fclose($handle);
fclose($lf);

return $terms;
}

Finally we can see a table with extracted keyword in a window .

Now I want to export this extracted key word as taxonomy term to create a vocabulary. So that I can use this vocabulary for rules autotagging.
please advice me how can I create a taxonomy vaocabulary from my extracted keyword.