Maybe I am confused and this API is not meant to be used in the manner I am thinking, so I am puzzled on how to implement the extractor_extract API?

The way the extractor_extract is now, the only variable in the function is the text to be auto tagged. Do you also need to include a variable for the vocabulary to use, so that API looks like:

<?php
$terms = extractor_extract($text, $vocab);
?>

I would like to call the extractor_extract API in a module I am developing. I have CCK fields and comments in which I want to auto tag by passing the text and specificed vocabulary IDs through the API to return a list of terms or term IDs. Then the node could be associated with the terms.

Is this not what you had in mind for the API?

Thanks for the feedback.

Comments

alex_b’s picture

Status: Active » Fixed

Not exactly. The vocabulary setting is really just a property of the simple extractor "library" as it uses a vocabulary to look up terms.

mkinnan’s picture

Oh well ... it would be fantastic if an additional API like what I described was added in the future.

Thanks.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.