TransWikia.com

Is it possible to classify documents of corpus using labels?

Data Science Asked by Uttakarsh Tikku on April 30, 2021

I have a corpus of 23000 documents that need to be classified into 5 different categories. I do not have any labeled data available to me, just freeform text documents and labels(yes, one-word labels, not topics).

So I followed a 2-step approach:

  1. Synthetically generate labeled data (using a rule-based labeling approach, obviously the recall is very low, ~ 1/8 documents are labeled)
  2. Somehow, use this labeled data to identify labels for other documents.

I have attempted the following approaches for step 2:

  1. Topic modeling on data classified using rules to extract significant terms and using significant terms to label the remaining documents.
  2. Finding significant terms using sentence embedding
  3. Using sentence embedding as features for my classifier

But I haven’t been successful in getting good results for my document classifier. Are there any other methods that can be used to classify the documents?

All help is greatly appreciated.

One Answer

  1. You could simply encode the documents using BERT and cluster the documents based on their content provided they sufficiently different in terms of the kind of content they contain.

  2. Another approach would be to train a document segmentation model which would segment documents based on their semantic structures and then classify the documents based on their masked skeletons. This however would require a large dataset to train. Fortunately you can find one online called PubLayNet. Augment that with a few representations of your documents for better generalization over the test set.

I've read about the second approach being implemented to classify patents, legal documents, research papers etc. With good results. However it would take a long time to train.

I'd recommend simply clustering the documents based on their text embedding (point 1) and then naming the clusters. If that doesn't work satisfactorily, try the deep learning method for document semantic masking.

Answered by tehem on April 30, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP