The document describes an approach called Doc2Spec that infers resource specifications from natural language API documentation. It extracts method descriptions and class hierarchies from documentation using NLP. It builds action-resource pairs and infers automata specifications. An evaluation on 5 libraries found the inferred specifications have high precision and recall, and are useful for detecting real bugs in open source projects. Future work includes improving specification templates and applying it to other documentation.