xcl-en-demo / pysbd /lang /burmese.py
Ari Nubar Boyacıoğlu
add files
42bcb30
raw
history blame
371 Bytes
# -*- coding: utf-8 -*-
from pysbd.abbreviation_replacer import AbbreviationReplacer
from pysbd.lang.common import Common, Standard
class Burmese(Common, Standard):
iso_code = 'my'
SENTENCE_BOUNDARY_REGEX = r'.*?[။၏!\?]|.*?$'
Punctuations = ['။', '၏', '?', '!']
class AbbreviationReplacer(AbbreviationReplacer):
SENTENCE_STARTERS = []