diff options
Diffstat (limited to 'gi/posterior-regularisation/train_pr_global.py')
-rw-r--r-- | gi/posterior-regularisation/train_pr_global.py | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/gi/posterior-regularisation/train_pr_global.py b/gi/posterior-regularisation/train_pr_global.py index 8b80c6bc..f2806b6e 100644 --- a/gi/posterior-regularisation/train_pr_global.py +++ b/gi/posterior-regularisation/train_pr_global.py @@ -290,10 +290,4 @@ for p, (phrase, ccs) in enumerate(edges_phrase_to_context): cz = sum(conditionals) conditionals /= cz - #scores = zeros(num_tags) - #li = lamba_index[phrase, context] - #for t in range(num_tags): - # scores[t] = conditionals[t] * exp(-lamba[li + t]) - - #print '%s\t%s ||| C=%d ||| %d |||' % (phrase, context, count, argmax(scores)), scores / sum(scores) - print '%s\t%s ||| C=%d ||| %d |||' % (phrase, context, count, argmax(conditionals)), conditionals + print '%s\t%s ||| C=%d |||' % (phrase, context, argmax(conditionals)), conditionals |