Deep-Learning-Based Named Entity Recognition for Turkish Industrial Property Law: Dataset Creation and Parameter Optimization
Abstract
Artificial intelligence is gaining importance in the legal domain, while Named Entity Recognition (NER) research on Turkish legal texts remains limited by the scarcity of annotated resources. This study introduces a manually annotated NER dataset derived from the full text of the Turkish Industrial Property Law (SMK), comprising 1730 sentences and 32,715 tokens in Inside–Outside–Beginning (IOB) format. The annotation scheme includes eight entity types, three general-purpose and five specific to legislative texts. A Bidirectional Long Short-Term Memory–Conditional Random Field (BiLSTM-CRF) architecture combining Global Vectors for Word Representation (GloVe) and Morph2Vec word embeddings with character-level BiLSTM features was evaluated by varying the number of neurons in the word-level BiLSTM from 1 to 800. Evaluation was performed using article-based 10-fold cross-validation, and BERTurk and LegalBERT were evaluated as Transformer-based baselines using the same partitioning strategy. The BiLSTM-CRF achieved an F1 score of 88.38% with 100 neurons and its highest F1 score of 88.58% with 200 neurons, while BERTurk and LegalBERT achieved F1 scores of 89.03% and 81.10%, respectively. Performance gains diminished as model capacity increased, and the F1 score declined beyond 200 neurons. BERTurk achieved an F1 score only 0.45 percentage points higher than the best-performing BiLSTM-CRF.