Statistical Learning for Inference between Implementations and Documentation
Authors:
- Hung PhanHPHung Phan
- Hoan Anh NguyenHNHoan Anh Nguyen
- Tien N. NguyenTNTien N. Nguyen
- Hridesh RajanHRHridesh Rajan
- 1 May 2017
- conference paper
- Published by Institute of Electrical and Electronics Engineers (IEEE)
- p. 27-30
Abstract
API documentation is useful for developers to better understand how to correctly use the libraries. However, not all libraries provide good documentation on API usages. To provide better documentation, existing techniques have been proposed including program analysis-based and data mining-based approaches. In this work, instead of mining, we aim to generate behavioral exception documentation for any given code. We treat the problem of automatically generating documentation from a novel perspective: statistical machine translation (SMT). We consider the documentation and source code for an API method as the two abstraction levels of the same intention. We use SMT to translate documentation from source code and vice versa. Our preliminary results show that the direction of statistical learning for inference between implementations and documentation is very promising.Keywords
This publication has 8 references indexed in Scilit:
- Automatic model generation from documentation for Java API functions2016
- Mining preconditions of APIs in large-scale code corpus2014
- Live API documentation2014
- @tComment: Testing Javadoc Comments to Detect Comment-Code Inconsistencies2012
- Creating and evolving developer documentation2010
- Towards automatically generating summary comments for Java methods2010
- Automatically documenting program changes2010
- Graph-based mining of multiple object usage patterns2009