forked from jiesutd/NCRFpp
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
2 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
# @Author: Jie Yang | ||
# @Date: 2017-12-04 23:19:38 | ||
# @Last Modified by: Jie Yang, Contact: [email protected] | ||
# @Last Modified time: 2018-05-16 16:57:39 | ||
# @Last Modified time: 2018-09-24 23:15:31 | ||
from __future__ import print_function | ||
import torch | ||
import torch.autograd as autograd | ||
|
@@ -32,7 +32,7 @@ def __init__(self, tagset_size, gpu): | |
super(CRF, self).__init__() | ||
print("build CRF...") | ||
self.gpu = gpu | ||
# Matrix of transition parameters. Entry i,j is the score of transitioning *to* i *from* j. | ||
# Matrix of transition parameters. Entry i,j is the score of transitioning from i to j. | ||
self.tagset_size = tagset_size | ||
# # We add 2 here, because of START_TAG and STOP_TAG | ||
# # transitions (f_tag_size, t_tag_size), transition value from f_tag to t_tag | ||
|