mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-27 02:16:32 +03:00
1c40890321
Should fix Travis build error
48 lines
1.3 KiB
Python
48 lines
1.3 KiB
Python
# coding=utf-8
|
|
from __future__ import unicode_literals
|
|
|
|
from ..symbols import *
|
|
|
|
TOKENIZER_EXCEPTIONS = {}
|
|
|
|
ABBREVIATIONS = {
|
|
"ডঃ": [
|
|
{ORTH: "ডঃ", LEMMA: "ডক্টর"},
|
|
],
|
|
"ডাঃ": [
|
|
{ORTH: "ডাঃ", LEMMA: "ডাক্তার"},
|
|
],
|
|
"ড.": [
|
|
{ORTH: "ড.", LEMMA: "ডক্টর"},
|
|
],
|
|
"ডা.": [
|
|
{ORTH: "ডা.", LEMMA: "ডাক্তার"},
|
|
],
|
|
"মোঃ": [
|
|
{ORTH: "মোঃ", LEMMA: "মোহাম্মদ"},
|
|
],
|
|
"মো.": [
|
|
{ORTH: "মো.", LEMMA: "মোহাম্মদ"},
|
|
],
|
|
"সে.": [
|
|
{ORTH: "সে.", LEMMA: "সেলসিয়াস"},
|
|
],
|
|
"কি.মি.": [
|
|
{ORTH: "কি.মি.", LEMMA: "কিলোমিটার"},
|
|
],
|
|
"কি.মি": [
|
|
{ORTH: "কি.মি", LEMMA: "কিলোমিটার"},
|
|
],
|
|
"সে.মি.": [
|
|
{ORTH: "সে.মি.", LEMMA: "সেন্টিমিটার"},
|
|
],
|
|
"সে.মি": [
|
|
{ORTH: "সে.মি", LEMMA: "সেন্টিমিটার"},
|
|
],
|
|
"মি.লি.": [
|
|
{ORTH: "মি.লি.", LEMMA: "মিলিলিটার"},
|
|
]
|
|
}
|
|
|
|
TOKENIZER_EXCEPTIONS.update(ABBREVIATIONS)
|