We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I think @staticmethod def __getrelationinfo(lnode, rnode): """ Get relation information :type lnode,rnode: SpanNode instance :param lnode,rnode: Left/Right children nodes """ if (lnode.prop == 'Nucleus') and (rnode.prop == 'Nucleus'): relation = lnode.relation elif (lnode.prop == 'Nucleus') and (rnode.prop == 'Satellite'): relation = lnode.relation elif (lnode.prop == 'Satellite') and (rnode.prop == 'Nucleus'): relation = rnode.relation else: print('lnode.prop = {}, lnode.edu_span = {}'.format(lnode.prop, lnode.edu_span)) print('rnode.prop = {}, lnode.edu_span = {}'.format(rnode.prop, rnode.edu_span)) raise ValueError("Error when find relation for new node") return relation
should be
@staticmethod def __getrelationinfo(lnode, rnode): """ Get relation information :type lnode,rnode: SpanNode instance :param lnode,rnode: Left/Right children nodes """ if (lnode.prop == 'Nucleus') and (rnode.prop == 'Nucleus'): relation = lnode.relation elif (lnode.prop == 'Nucleus') and (rnode.prop == 'Satellite'): relation = rnode.relation elif (lnode.prop == 'Satellite') and (rnode.prop == 'Nucleus'): relation = lnode.relation else: print('lnode.prop = {}, lnode.edu_span = {}'.format(lnode.prop, lnode.edu_span)) print('rnode.prop = {}, lnode.edu_span = {}'.format(rnode.prop, rnode.edu_span)) raise ValueError("Error when find relation for new node") return relation
isn't it?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I think
@staticmethod
def __getrelationinfo(lnode, rnode):
""" Get relation information
:type lnode,rnode: SpanNode instance
:param lnode,rnode: Left/Right children nodes
"""
if (lnode.prop == 'Nucleus') and (rnode.prop == 'Nucleus'):
relation = lnode.relation
elif (lnode.prop == 'Nucleus') and (rnode.prop == 'Satellite'):
relation = lnode.relation
elif (lnode.prop == 'Satellite') and (rnode.prop == 'Nucleus'):
relation = rnode.relation
else:
print('lnode.prop = {}, lnode.edu_span = {}'.format(lnode.prop, lnode.edu_span))
print('rnode.prop = {}, lnode.edu_span = {}'.format(rnode.prop, rnode.edu_span))
raise ValueError("Error when find relation for new node")
return relation
should be
@staticmethod
def __getrelationinfo(lnode, rnode):
""" Get relation information
:type lnode,rnode: SpanNode instance
:param lnode,rnode: Left/Right children nodes
"""
if (lnode.prop == 'Nucleus') and (rnode.prop == 'Nucleus'):
relation = lnode.relation
elif (lnode.prop == 'Nucleus') and (rnode.prop == 'Satellite'):
relation = rnode.relation
elif (lnode.prop == 'Satellite') and (rnode.prop == 'Nucleus'):
relation = lnode.relation
else:
print('lnode.prop = {}, lnode.edu_span = {}'.format(lnode.prop, lnode.edu_span))
print('rnode.prop = {}, lnode.edu_span = {}'.format(rnode.prop, rnode.edu_span))
raise ValueError("Error when find relation for new node")
return relation
isn't it?
The text was updated successfully, but these errors were encountered: