ajitrajasekharan commited on
Commit
d2cfda3
1 Parent(s): 8e22871

Upload batched_main_NER.py

Browse files
Files changed (1) hide show
  1. batched_main_NER.py +4 -0
batched_main_NER.py CHANGED
@@ -29,6 +29,10 @@ def softmax(x):
29
  e_x = np.exp(x - np.max(x))
30
  return e_x / e_x.sum(axis=0) # only difference
31
 
 
 
 
 
32
 
33
  #noun_tags = ['NFP','JJ','NN','FW','NNS','NNPS','JJS','JJR','NNP','POS','CD']
34
  #cap_tags = ['NFP','JJ','NN','FW','NNS','NNPS','JJS','JJR','NNP','PRP']
 
29
  e_x = np.exp(x - np.max(x))
30
  return e_x / e_x.sum(axis=0) # only difference
31
 
32
+ #def softmax(x):
33
+ # """Compute softmax values for each sets of scores in x."""
34
+ # return np.exp(x) / np.sum(np.exp(x), axis=0)
35
+
36
 
37
  #noun_tags = ['NFP','JJ','NN','FW','NNS','NNPS','JJS','JJR','NNP','POS','CD']
38
  #cap_tags = ['NFP','JJ','NN','FW','NNS','NNPS','JJS','JJR','NNP','PRP']