original_docstring: 
    Example sentence: "It has good speed, a nice perfect screen and keyboard."
     GROUP RELATED NAMES TOGETHER e.g. {('SPEED', 4): [('SPEED', 4), ('SCREEN', 9), ('KEYBOARD', 11)], ('SCREEN', 9): [('SCREEN', 9)], ('KEYBOARD', 11): [('KEYBOARD', 11)]}
    
docstring: Example sentence: "It has good speed, a nice perfect screen and keyboard."
  GROUP RELATED NAMES TOGETHER e.g.
docstring_tokens: Example sentence : " It has good speed a nice perfect screen and keyboard . " GROUP RELATED NAMES TOGETHER e . g .
code: def _findRelatedNouns(sentence):
    '''
    Example sentence: "It has good speed, a nice perfect screen and keyboard."
     GROUP RELATED NAMES TOGETHER e.g. {('SPEED', 4): [('SPEED', 4), ('SCREEN', 9), ('KEYBOARD', 11)], ('SCREEN', 9): [('SCREEN', 9)], ('KEYBOARD', 11): [('KEYBOARD', 11)]}
    '''
    nameGroups={}
    for token in sentence.tokens:  
      if (token.words[0].upos == 'NOUN' or token.words[0].upos == 'PROPN'):
        tokenProps = token.words[0]
        nameGroups.setdefault((tokenProps.lemma.upper(), tokenProps.id), []).append( 
          (tokenProps.lemma.upper(), tokenProps.id) ) # add the name itself to the group of related names list before adding the related names
  
        if tokenProps.deprel == 'conj': # handle names having related names to itself (if any related name exists)
          relatedParentNameProps = sentence.tokens[tokenProps.head-1].words[0]
          nameGroups.setdefault( (relatedParentNameProps.lemma.upper(), relatedParentNameProps.id), [] ).append((tokenProps.lemma.upper(), tokenProps.id) )
    return nameGroups
code_tokens: def _findRelatedNouns ( sentence ) : nameGroups = { } for token in sentence . tokens : if ( token . words [ 0 ] . upos == 'NOUN' or token . words [ 0 ] . upos == 'PROPN' ) : tokenProps = token . words [ 0 ] nameGroups . setdefault ( ( tokenProps . lemma . upper ( ) , tokenProps . id ) , [ ] ) . append ( ( tokenProps . lemma . upper ( ) , tokenProps . id ) ) if tokenProps . deprel == 'conj' : relatedParentNameProps = sentence . tokens [ tokenProps . head - 1 ] . words [ 0 ] nameGroups . setdefault ( ( relatedParentNameProps . lemma . upper ( ) , relatedParentNameProps . id ) , [ ] ) . append ( ( tokenProps . lemma . upper ( ) , tokenProps . id ) ) return nameGroups
short_docstring: Example sentence: "It has good speed, a nice perfect screen and keyboard."
short_docstring_tokens: Example sentence : " It has good speed a nice perfect screen and keyboard . "
comment: '''
    Example sentence: "It has good speed, a nice perfect screen and keyboard."
     GROUP RELATED NAMES TOGETHER e.g. {('SPEED', 4): [('SPEED', 4), ('SCREEN', 9), ('KEYBOARD', 11)], ('SCREEN', 9): [('SCREEN', 9)], ('KEYBOARD', 11): [('KEYBOARD', 11)]}
    '''$SEP$# add the name itself to the group of related names list before adding the related names$SEP$# handle names having related names to itself (if any related name exists)