Polish Court Ruling Classification Using Deep Neural Networks

Sensors (Basel). 2022 Mar 9;22(6):2137. doi: 10.3390/s22062137.

Abstract

In this work, the problem of classifying Polish court rulings based on their text is presented. We use natural language processing methods and classifiers based on convolutional and recurrent neural networks. We prepared a dataset of 144,784 authentic, anonymized Polish court rulings. We analyze various general language embedding matrices and multiple neural network architectures with different parameters. Results show that such models can classify documents with very high accuracy (>99%). We also include an analysis of wrongly predicted examples. Performance analysis shows that our method is fast and could be used in practice on typical server hardware with 2 Processors (Central Processing Units, CPUs) or with a CPU and a Graphics processing unit (GPU).

Keywords: Polish court rulings; artificial neural networks; law text classification; machine learning; natural language processing.

MeSH terms

  • Computers
  • Language
  • Natural Language Processing*
  • Neural Networks, Computer*
  • Poland