I have 100,000+ PDF healthcare documents from which I have extracted text. I would like to cluster these documents by type (e.g. pathology report, doctor visit notes, prescription orders, etc.)
The format and structure of the documents are unknown ahead of time. However, we can assume that the name of the document type occurs explicitly somewhere within the first 50 words of each document. E.g. A pathology report will contain the words "pathology report" somewhere near the top.
The contents of the documents are otherwise irrelevant. I simply want to cluster documents together by document type.
I do not know the names or number of document types ahead of time. I would like the algorithm to automatically determine the best number of clusters.
I'm not very experienced in machine learning, but I am a competent programmer. What's the best way to attack this problem? Thanks.