1

Renaming deinflection parameter term to source

Former-commit-id: 617fa8aee4ee48112f53bf0fafeff7494f5bac41
This commit is contained in:
Alex Yatskov 2013-11-09 11:45:02 -08:00
parent 9ce77c40b5
commit d9e3e3619e

View File

@ -80,7 +80,7 @@ class Deinflection:
if len(self.children) == 0: if len(self.children) == 0:
endpoint = { endpoint = {
'root': self.term, 'root': self.term,
'term': self.term, 'source': self.term,
'rules': [self.rule] if self.rule else list() 'rules': [self.rule] if self.rule else list()
} }
@ -92,7 +92,7 @@ class Deinflection:
if self.rule: if self.rule:
path['rules'].append(self.rule) path['rules'].append(self.rule)
else: else:
path['term'] = self.term path['source'] = self.term
paths.append(path) paths.append(path)
return paths return paths