Skip to content

Instantly share code, notes, and snippets.

@tingletech
Forked from onyxfish/example1.py
Created December 4, 2011 07:40
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tingletech/1429538 to your computer and use it in GitHub Desktop.
Save tingletech/1429538 to your computer and use it in GitHub Desktop.
Basic example of using NLTK for auto-greeking text
see now https://github.com/tingletech/greeker.py
usage: greeker.py [-h] [--piglatin] [infile] [outfile]
Create greeked text for XML testing.
positional arguments:
infile input XML (or standard input)
outfile output greeked XML (or standard out)
optional arguments:
-h, --help show this help message and exit
--piglatin replace using pig latin rather than more random "words"
scrambles nouns in an XML document to produce a specimine for layout testing
@tingletech
Copy link
Author

I've moved this to here: https://github.com/tingletech/greeker.py

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment