Advertisement
Guest User

Untitled

a guest
Jun 20th, 2019
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.79 KB | None | 0 0
  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]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement