parameters: (words, pos, i, rare_word)
return_statement: return context
docstring: get tag context for words[i]
docstring_summary: get tag context for words[i]
docstring_tokens: get tag context for words [ i ]
function: def get_context21(words, pos, i, rare_word):
      'get tag context for words[i]'
      context = []
      w = words[i]
      n = len(words)
      if rare_word:
          prefix, suffix = get_prefix_suffix2(w, 1)
          for p in prefix:
              context.append('prefix=' + p)
          for s in suffix:
              context.append('suffix=' + s)
      else:
          context.append('curword=' + w)
  
      if i > 0:
          context.append('word-1=' + words[i - 1])
          context.append('tag-1=' + pos[i - 1])
      else:
          context.append('word-1=BOUNDARY')
          context.append('tag-1=BOUNDARY')
  
      if i + 1 < n:
          context.append('word+1=' + words[i + 1])
      else:
          context.append('word+1=BOUNDARY')
  
      return context
function_tokens: def get_context21 ( words , pos , i , rare_word ) : context = [ ] w = words [ i ] n = len ( words ) if rare_word : prefix , suffix = get_prefix_suffix2 ( w , 1 ) for p in prefix : context . append ( 'prefix=' + p ) for s in suffix : context . append ( 'suffix=' + s ) else : context . append ( 'curword=' + w ) if i > 0 : context . append ( 'word-1=' + words [ i - 1 ] ) context . append ( 'tag-1=' + pos [ i - 1 ] ) else : context . append ( 'word-1=BOUNDARY' ) context . append ( 'tag-1=BOUNDARY' ) if i + 1 < n : context . append ( 'word+1=' + words [ i + 1 ] ) else : context . append ( 'word+1=BOUNDARY' ) return context