Skip to content

Commit 59c383b

Browse files
committed
Add additional attributes to CRF object for better compatibility with sklearn interface
1 parent 293a2d0 commit 59c383b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

sklearn_crfsuite/estimator.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,9 @@ def __init__(self,
263263
self.averaging = averaging
264264
self.variance = variance
265265
self.gamma = gamma
266-
266+
self.model_filename = model_filename
267+
self.keep_tempfiles = keep_tempfiles
268+
267269
self.modelfile = FileResource(
268270
filename=model_filename,
269271
keep_tempfiles=keep_tempfiles,

0 commit comments

Comments
 (0)