problem using pydoc in python
Posted
by
rohanag
on Programmers
See other posts from Programmers
or by rohanag
Published on 2012-11-30T04:38:50Z
Indexed on
2012/11/30
5:25 UTC
Read the original article
Hit count: 360
python
|documentation
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
© Programmers or respective owner