explosion / explosion/spaCy

Sentence-terminal periods not tokenized properly in Malayalam text

Open
#12,898 3 comments 0 reactions 0 assignees View on GitHub
bug lang / ml
Dominant language
Python
Stars
33.9k
Forks
4.7k
Avg merge
3m
Merged PRs (30d)
1

Description

## How to reproduce the behaviour
import spacy

nlp = spacy.blank('ml')
doc = nlp('ഇന്ത്യയിൽ കേരള സംസ്ഥാനത്തിലും കേന്ദ്രഭരണപ്രദേശങ്ങളായ ലക്ഷദ്വീപിലും പോണ്ടിച്ചേരിയുടെ ഭാഗമായ മാഹിയിലും തമിഴ്നാട്ടിലെ കന്യാകുമാരി ജില്ലയിലും നീലഗിരി ജില്ലയിലെ ഗൂഡല്ലൂർ താലൂക്കിലും സംസാരിക്കപ്പെടുന്ന ഭാഷയാണ് മലയാളം.')
print(doc[-1]) # Print 'മലയാളം.', should be '.'

## Your Environment
* Operating System: Windows 11 x64
* Python Version Used: 3.10.12
* spaCy Version Used: 3.6.0

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.