The Web as a Knowledge Base for Document Classification Tasks in Distributed Environments