Moved converter specifications to constructor
This commit is contained in:
@@ -198,10 +198,13 @@ class Msd:
|
||||
|
||||
class MsdToProperties:
|
||||
|
||||
def convert(self, specifications, msd, lemma, properties_language):
|
||||
def __init__(self, specifications):
|
||||
self.specifications = specifications
|
||||
|
||||
def convert(self, msd, lemma, properties_language):
|
||||
category_char = msd.code[0].lower()
|
||||
value_chars = msd.code[1:]
|
||||
category = specifications.find_category(category_char, msd.language)
|
||||
category = self.specifications.find_category(category_char, msd.language)
|
||||
feature_value_list = []
|
||||
for (index, value_char) in enumerate(value_chars, start=1):
|
||||
if (value_char != '-'):
|
||||
|
||||
Reference in New Issue
Block a user