SHARE
TWEET

Untitled

a guest Jun 20th, 2019 59 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. word_tag = line[:-1] + "/" + line[-1]
  2.      
  3. line: ['#', 'DELM']
  4.      
  5. if word_tag in emissionProbDict.keys():
  6.         emissionProbDict[word_tag] = emissionProbDict[word_tag] + line.count(word_tag)
  7.     else:
  8.         emissionProbDict[word_tag] = line.count(word_tag)
  9.      
  10. word_tag = line[:-1] +["/"] + [line[-1]]
  11.      
  12. word_tag=''.join(line[:-1]) + '/' + line[-1]
  13.      
  14. line = ['#', 'DELM']
  15.  
  16. word_tag = line[:-1]     # list
  17. word_tag.append("/")     # append element to list
  18. word_tag.append(line[1]) # append element to list
  19.      
  20. word_tag = line[:-1] + [ "/" ] + [ line[1] ]
  21.      
  22. word_tag = line[:-1] + [ "/", line[1] ]
  23.      
  24. word_tag = line[:-1]
  25. word_tag.extend( [ "/", line[1] ] )
  26.      
  27. word_tag = "".join( word_tag )
  28.      
  29. word_tag = "".join( line[:-1] )  + "/" + line[1]
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top