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
Comment #1
alex_b commentedNot exactly. The vocabulary setting is really just a property of the simple extractor "library" as it uses a vocabulary to look up terms.
Comment #2
mkinnan commentedOh well ... it would be fantastic if an additional API like what I described was added in the future.
Thanks.