A set of Python Scripts to Convert Java API Documentation into a more readable Natural Language Format. These related to w.r.t Domain Adapation Component w.r.t Paper "APIBot: Question Answering Bot for API Documentation"
python>=3.5.2 (Tested on Python 3.5.2 and Ubuntu 16.04 LTS)
Ubuntu==16.04 LTS
html2text==2018.1.9
nltk==3.2.1
beautifulsoup4==4.6.0
lxml==4.2.1
- Delete the .keep files in all subdirectories of folder Data.
- Download the Java SE Documentaion from the official link.
- Unzip the .zip file extracted in previous step to folder Data. You should see a docs folder.
- Go the the folder ExtractDocInfo and run IterateOverAPIDocs.py.
- You should see the converted documents in the folder FACTS.
- In case you delete the folders in Data you may run the .\setup.sh file present in the same folder.
@inproceedings{
tian2017apibot,
title={APIBot: Question answering bot for API documentation},
author={Tian, Yuan and Thung, Ferdian and Sharma, Abhishek and Lo, David},
booktitle={Automated Software Engineering (ASE), 2017 32nd IEEE/ACM International Conference on},
pages={153--158},
year={2017},
organization={IEEE}
}