Commit 883b551b authored by Neeme Kahusk's avatar Neeme Kahusk
Browse files

Listid vaikimisi None

parent d4d42762
......@@ -146,16 +146,15 @@ class Instance(Synset):
self.fieldname = 'WORD_INSTANCE'
class Variant:
def __init__(self, lemma, sense,
gloss=None, examples=[],
external_info=[]):
gloss=None, examples=None,
external_info=None):
self.lemma = lemma
self.sense = sense
self.gloss = gloss
self.examples = examples
self.external_info = external_info
self.examples = examples or []
self.external_info = external_info or []
def __str__(self):
out = format_polaris(2, 'LITERAL', self.lemma)
......@@ -183,16 +182,14 @@ class Variant:
out = '{}\n{}'.format(out,
'\n'.join([str(i) for i in self.external_info])
)
return out
class InternalLink:
def __init__(self, name, target_concept,
features=[]):
features=None):
self.name = name
self.target_concept = target_concept
self.features = features
self.features = features or []
if __name__ == '__main__':
# print(format_polaris(0, 'WORD_MEANING', record=222))
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment