index.xsl 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <?xml version="1.0"?>
  2. <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
  3. <xsl:template match="/nltk_data">
  4. <HTML>
  5. <HEAD>
  6. <TITLE>NLTK Data</TITLE>
  7. </HEAD>
  8. <BODY bgcolor="white" text="navy">
  9. <H1>NLTK Corpora</H1>
  10. <P>NLTK has built-in support for dozens of corpora and trained models, as listed below.
  11. To use these within NLTK we recommend that you use the NLTK corpus downloader,
  12. <TT>&gt;&gt;&gt; nltk.download()</TT></P>
  13. <P>Please consult the README file included with each
  14. corpus for further information.</P>
  15. <OL>
  16. <xsl:for-each select="//packages/package">
  17. <LI><I><xsl:value-of select="@name"/></I>
  18. [<xsl:element name="a">
  19. <xsl:attribute name="href">
  20. <xsl:value-of select="@url"/>
  21. </xsl:attribute>
  22. download
  23. </xsl:element>
  24. |<xsl:element name="a">
  25. <xsl:attribute name="href">
  26. <xsl:value-of select="@webpage"/>
  27. </xsl:attribute>
  28. source
  29. </xsl:element>]
  30. <BR/>
  31. id: <tt><xsl:value-of select="@id"/></tt>;
  32. size: <xsl:value-of select="@size"/>;
  33. author: <xsl:value-of select="@author"/>;
  34. copyright: <xsl:value-of select="@copyright"/>;
  35. license: <xsl:value-of select="@license"/>;
  36. <P/>
  37. </LI>
  38. </xsl:for-each>
  39. </OL>
  40. <HR/>
  41. <A href="http://www.nltk.org">Natural Language Toolkit</A>
  42. </BODY>
  43. </HTML>
  44. </xsl:template>
  45. </xsl:stylesheet>