piskvorky/gensim

Add API documentation for public class attributes

Open

#566 创建于 2015年12月22日

在 GitHub 查看
 (2 评论) (0 反应) (0 负责人)Python (15,144 star) (4,349 fork)batch import
Hacktoberfestdifficulty easydocumentationgood first issue

描述

It would be better for API documentation if "public" class attributes, e.g. models.Doc2Vec.docvecs, were explicitly documented as part of the class with examples describing appropriate use. Hopefully, this would help mitigate questions such as this one.

This could be achieved in a few ways with Sphinx:

  1. Via __init__ doc strings with autoattribute (example)
  2. Use Python properties

贡献者指南

Add API documentation for public class attributes · piskvorky/gensim#566 | Good First Issue