forked from meliksahturker/Turkish-NLP-Preprocessing-module
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Suffix.py
27 lines (19 loc) · 736 Bytes
/
Suffix.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
import re
class Suffix:
suffix_name = ''
suffix_types = []
irregularity = None
check_before = False # If this is true, check the previous part, if it does not match with irregularity, do not do deletion
delete_before = False
def __init__(self, suffix_name, suffix_types, irregularity, check_before, delete_before):
self.suffix_name = suffix_name
self.suffix_types = suffix_types
self.irregularity = irregularity
self.check_before = check_before
self.delete_before = delete_before
def get_name(self):
return self.suffix_name
def get_types(self):
return self.suffix_types
def get_irregularities(self):
return self.irregularity