init
This commit is contained in:
14
spider/wordpropertyconversion.py
Normal file
14
spider/wordpropertyconversion.py
Normal file
@ -0,0 +1,14 @@
|
||||
def word_property_conversion(text):
|
||||
vc = ("vi.", "vt.", "aux.")
|
||||
pronc = ("det.",)
|
||||
interjc = ("int.",)
|
||||
abbrc = ("pref.", "symb.")
|
||||
if text in vc:
|
||||
return "v."
|
||||
elif text in pronc:
|
||||
return "pron."
|
||||
elif text in interjc:
|
||||
return "interj."
|
||||
elif text in abbrc:
|
||||
return "abbr."
|
||||
return text
|
||||
Reference in New Issue
Block a user