problem using pydoc in python
- by rohanag
I'm using pydoc in python 2.7.3 to generate documentation for a file called PreProcessingAPI.py which contains a class called PreProcessingAPI
In PreProcessingAPI.py, I have the following import in the beginning of the file:
from __future__ import division
from re import *
from nltk.stem import porter
The problem is, in the documentation generated by pydoc, nltk.stem.porter is shown as a Module. There is also a DATA heading with all sorts of variables I do not know about. Is there a way to avoid these variables and avoid showing nltk.stem.porter in the modules?
I'm running the following command to generate documentation
python pydoc.py -w PreProcessingAPI.py
I've put the file pydoc.py in the directory containing my file.
Here is the file generated: https://www.dropbox.com/s/4rb6ut99o25mwly/PreProcessingAPI.html