2017-11-02 15:32:24 +00:00
|
|
|
|
# coding: utf8
|
|
|
|
|
from __future__ import unicode_literals
|
|
|
|
|
|
|
|
|
|
from ...symbols import ORTH, NORM
|
|
|
|
|
|
|
|
|
|
_exc = {
|
|
|
|
|
"sağol": [
|
|
|
|
|
{ORTH: "sağ"},
|
|
|
|
|
{ORTH: "ol", NORM: "olun"}]
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
for exc_data in [
|
2018-03-09 09:13:00 +00:00
|
|
|
|
{ORTH: "A.B.D.", NORM: "Amerika Birleşik Devletleri"},
|
2018-03-08 17:02:25 +00:00
|
|
|
|
{ORT: "Alb.", NORM: "Albay"},
|
|
|
|
|
{ORT: "Ar.Gör.", NORM: "Araştırma Görevlisi"},
|
|
|
|
|
{ORT: "Arş.Gör.", NORM: "Araştırma Görevlisi"},
|
|
|
|
|
{ORT: "Asb.", NORM: "Astsubay"},
|
2018-03-09 09:13:00 +00:00
|
|
|
|
{ORT: "Astsb.", NORM: "Astsubay"},
|
2018-03-08 17:02:25 +00:00
|
|
|
|
{ORT: "As.İz.", NORM: "Askeri İnzibat"},
|
|
|
|
|
{ORT: "Atğm", NORM: "Asteğmen"},
|
|
|
|
|
{ORT: "Av.", NORM: "Avukat"},
|
|
|
|
|
{ORT: "Apt.", NORM: "Apartmanı"},
|
|
|
|
|
{ORTH: "Bçvş.", NORM: "Başçavuş"},
|
|
|
|
|
{ORTH: "bk.", NORM: "bakınız"},
|
|
|
|
|
{ORTH: "bknz.", NORM: "bakınız"},
|
2018-03-09 09:13:00 +00:00
|
|
|
|
{ORTH: "Bnb.", NORM: "Binbaşı"},
|
2018-03-08 17:02:25 +00:00
|
|
|
|
{ORTH: "bnb.", NORM: "binbaşı"},
|
|
|
|
|
{ORTH: "Böl.", NORM: "Bölümü"},
|
|
|
|
|
{ORTH: "Bşk.", NORM: "Başkanlığı"},
|
2018-03-09 09:13:00 +00:00
|
|
|
|
{ORTH: "Bştbp.", NORM: "Baştabip"},
|
2018-03-08 17:02:25 +00:00
|
|
|
|
{ORTH: "Bul.", NORM: "Bulvarı"},
|
|
|
|
|
{ORTH: "Cad.", NORM: "Caddesi"},
|
|
|
|
|
{ORTH: "çev.", NORM: "çeviren"},
|
|
|
|
|
{ORTH: "Çvş.", NORM: "Çavuş"},
|
2018-03-09 09:13:00 +00:00
|
|
|
|
{ORTH: "dak.", NORM: "dakika"},
|
|
|
|
|
{ORTH: "dk.", NORM: "dakika"},
|
2018-03-08 17:02:25 +00:00
|
|
|
|
{ORTH: "Doç.", NORM: "Doçent"},
|
|
|
|
|
{ORTH: "doğ.", NORM: "doğum tarihi"},
|
|
|
|
|
{ORTH: "drl.", NORM: "derleyen"},
|
|
|
|
|
{ORTH: "Dz.", NORM: "Deniz"},
|
|
|
|
|
{ORTH: "Dz.K.K.lığı", NORM: "Deniz Kuvvetleri Komutanlığı"},
|
|
|
|
|
{ORTH: "Dz.Kuv.", NORM: "Deniz Kuvvetleri"},
|
|
|
|
|
{ORTH: "Dz.Kuv.K.", NORM: "Deniz Kuvvetleri Komutanlığı"},
|
|
|
|
|
{ORTH: "dzl.", NORM: "düzenleyen"},
|
2018-03-09 09:13:00 +00:00
|
|
|
|
{ORTH: "Ecz.", NORM: "Eczanesi"},
|
2018-03-08 17:02:25 +00:00
|
|
|
|
{ORTH: "ekon.", NORM: "ekonomi"},
|
|
|
|
|
{ORTH: "Fak.", NORM: "Fakültesi"},
|
|
|
|
|
{ORTH: "Gn.", NORM: "Genel"},
|
|
|
|
|
{ORTH: "Gnkur.", NORM: "Genelkurmay"},
|
2018-03-09 09:13:00 +00:00
|
|
|
|
{ORTH: "Gn.Kur.", NORM: "Genelkurmay"},
|
|
|
|
|
{ORTH: "gr.", NORM: "gram"},
|
2018-03-08 17:02:25 +00:00
|
|
|
|
{ORTH: "Hst.", NORM: "Hastanesi"},
|
|
|
|
|
{ORTH: "Hs.Uzm.", NORM: "Hesap Uzmanı"},
|
|
|
|
|
{ORTH: "huk.", NORM: "hukuk"},
|
|
|
|
|
{ORTH: "Hv.", NORM: "Hava"},
|
|
|
|
|
{ORTH: "Hv.K.K.lığı", NORM: "Hava Kuvvetleri Komutanlığı"},
|
|
|
|
|
{ORTH: "Hv.Kuv.", NORM: "Hava Kuvvetleri"},
|
|
|
|
|
{ORTH: "Hv.Kuv.K.", NORM: "Hava Kuvvetleri Komutanlığı"},
|
|
|
|
|
{ORTH: "Hz.", NORM: "Hazreti"},
|
|
|
|
|
{ORTH: "Hz.Öz.", NORM: "Hizmete Özel"},
|
|
|
|
|
{ORTH: "İng.", NORM: "İngilizce"},
|
|
|
|
|
{ORTH: "Jeol.", NORM: "Jeoloji"},
|
|
|
|
|
{ORTH: "jeol.", NORM: "jeoloji"},
|
|
|
|
|
{ORTH: "Korg.", NORM: "Korgeneral"},
|
|
|
|
|
{ORTH: "Kur.", NORM: "Kurmay"},
|
|
|
|
|
{ORTH: "Kur.Bşk.", NORM: "Kurmay Başkanı"},
|
|
|
|
|
{ORTH: "Kuv.", NORM: "Kuvvetleri"},
|
|
|
|
|
{ORTH: "Ltd.", NORM: "Limited"},
|
|
|
|
|
{ORTH: "Mah.", NORM: "Mahallesi"},
|
|
|
|
|
{ORTH: "mah.", NORM: "mahallesi"},
|
|
|
|
|
{ORTH: "max.", NORM: "maksimum"},
|
|
|
|
|
{ORTH: "min.", NORM: "minimum"},
|
|
|
|
|
{ORTH: "Müh.", NORM: "Mühendisliği"},
|
|
|
|
|
{ORTH: "müh.", NORM: "mühendisliği"},
|
|
|
|
|
{ORTH: "MÖ.", NORM: "Milattan Önce"},
|
|
|
|
|
{ORTH: "Onb.", NORM: "Onbaşı"},
|
|
|
|
|
{ORTH: "Ord.", NORM: "Ordinaryüs"},
|
|
|
|
|
{ORTH: "Org.", NORM: "Orgeneral"},
|
|
|
|
|
{ORTH: "Ped.", NORM: "Pedagoji"},
|
|
|
|
|
{ORTH: "Prof.", NORM: "Profesör"},
|
|
|
|
|
{ORTH: "Sb.", NORM: "Subay"},
|
|
|
|
|
{ORTH: "Sn.", NORM: "Sayın"},
|
|
|
|
|
{ORTH: "sn.", NORM: "saniye"},
|
|
|
|
|
{ORTH: "Sok.", NORM: "Sokak"},
|
|
|
|
|
{ORTH: "Şb.", NORM: "Şube"},
|
2018-03-08 17:07:52 +00:00
|
|
|
|
{ORTH: "Şti.", NORM: "Şirketi"},
|
2018-03-09 09:13:00 +00:00
|
|
|
|
{ORTH: "Tbp.", NORM: "Tabip"},
|
2018-03-08 17:02:25 +00:00
|
|
|
|
{ORTH: "T.C.", NORM: "Türkiye Cumhuriyeti"},
|
2018-03-09 09:13:00 +00:00
|
|
|
|
{ORTH: "Tel.", NORM: "Telefon"},
|
2018-03-08 17:02:25 +00:00
|
|
|
|
{ORTH: "tel.", NORM: "telefon"},
|
|
|
|
|
{ORTH: "telg.", NORM: "telgraf"},
|
2018-03-09 09:13:00 +00:00
|
|
|
|
{ORTH: "Tğm.", NORM: "Teğmen"},
|
2018-03-08 17:02:25 +00:00
|
|
|
|
{ORTH: "tğm.", NORM: "teğmen"},
|
|
|
|
|
{ORTH: "tic.", NORM: "ticaret"},
|
|
|
|
|
{ORTH: "Tug.", NORM: "Tugay"},
|
|
|
|
|
{ORTH: "Tuğg.", NORM: "Tuğgeneral"},
|
|
|
|
|
{ORTH: "Tümg.", NORM: "Tümgeneral"},
|
|
|
|
|
{ORTH: "Uzm.", NORM: "Uzman"},
|
|
|
|
|
{ORTH: "Üçvş.", NORM: "Üstçavuş"},
|
2018-03-09 09:13:00 +00:00
|
|
|
|
{ORTH: "Üni.", NORM: "Üniversitesi"},
|
2018-03-08 17:02:25 +00:00
|
|
|
|
{ORTH: "Ütğm.", NORM: "Üsteğmen"},
|
|
|
|
|
{ORTH: "vb.", NORM: "ve benzeri"},
|
2018-03-09 09:13:00 +00:00
|
|
|
|
{ORTH: "vs.", NORM: "vesaire"},
|
|
|
|
|
{ORTH: "Yard.", NORM: "Yardımcı"},
|
2018-03-08 17:02:25 +00:00
|
|
|
|
{ORTH: "Yar.", NORM: "Yardımcı"},
|
|
|
|
|
{ORTH: "Yd.Sb.", NORM: "Yedek Subay"},
|
2018-03-09 09:13:00 +00:00
|
|
|
|
{ORTH: "Yard.Doç.", NORM: "Yardımcı Doçent"},
|
|
|
|
|
{ORTH: "Yar.Doç.", NORM: "Yardımcı Doçent"},
|
|
|
|
|
{ORTH: "Yb.", NORM: "Yarbay"},
|
2018-03-08 17:02:25 +00:00
|
|
|
|
{ORTH: "Yrd.", NORM: "Yardımcı"},
|
|
|
|
|
{ORTH: "Yrd.Doç.", NORM: "Yardımcı Doçent"},
|
|
|
|
|
{ORTH: "Y.Müh.", NORM: "Yüksek mühendis"},
|
|
|
|
|
{ORTH: "Y.Mim.", NORM: "Yüksek mimar"}]:
|
2017-11-02 15:32:24 +00:00
|
|
|
|
_exc[exc_data[ORTH]] = [exc_data]
|
|
|
|
|
|
|
|
|
|
|
2018-03-09 09:13:00 +00:00
|
|
|
|
for orth in [
|
|
|
|
|
"Dr.", "yy."]:
|
2017-11-02 15:32:24 +00:00
|
|
|
|
_exc[orth] = [{ORTH: orth}]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
TOKENIZER_EXCEPTIONS = _exc
|