Towards More Intelligent Extraction of Information from Documents