Advertisement
Guest User

Untitled

a guest
Jul 27th, 2017
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.25 KB | None | 0 0
  1. $Id: README.txt,v 1.2 2010/03/01 16:31:36 rsoden Exp $
  2.  
  3. EXTRACTOR
  4. =========
  5.  
  6. Simple term extraction API.
  7.  
  8. Usage
  9. =====
  10.  
  11. With Feeds module:
  12.  
  13. - Install module
  14. - Edit a feeds configuration, pick either "Common syndication parser with term
  15. extraction" or "SimplePie parser with term extraction".
  16. - Go to "Mapping" settings of the processor and pick "Extracted term names" or
  17. "Extracted term tids" from the source drop down and map it to any target that
  18. handles arrays.
  19.  
  20. As API:
  21.  
  22. $terms = extractor_extract($text);
  23.  
  24. Yahoo Placemaker
  25. ================
  26.  
  27. The default tagging library in use is "Simple Extractor" which is a simple
  28. look up algorithm based on a terms in a taxonomy vocabulary. Alternatively, the
  29. Yahoo Placemaker API can be used as tagging library.
  30.  
  31. To use Yahoo Placemaker with Feeds module, click on the settings form of the
  32. term extraction parser and select "Yahoo Placemaker" as extraction library. Then
  33. supply an API key and if a different language than English should be used for
  34. terms, specify the language code.
  35.  
  36. To use Yahoo Placemaker on the API level, call:
  37.  
  38. $terms = extractor_extract($text, 'placemaker', array('placemaker_key' => '<MYPMKEY>'));
  39.  
  40. or:
  41.  
  42. $terms = extractor_extract($text, 'placemaker', array('placemaker_key' => '<MYPMKEY>'), 'language' => 'fr');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement