nicolay-r/AREkit

RuAttitudes, BratEntity -- childs parameter is not initialized

nicolay-r opened this issue · 0 comments

def to_entity(self, to_doc_id_func):
assert(callable(to_doc_id_func))
return BratEntity(id_in_doc=to_doc_id_func(self.__id_in_sentence),
value=self.__value if len(self.__value) > 0 else '[empty]',
e_type=self.__type,
index_begin=self.__bound.Position,
index_end=self.__bound.Position + self.__bound.Length,
group_index=self.__syn_group_index)