Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add model_filename and keep_tempfiles attrs to CRF instance #74

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion sklearn_crfsuite/estimator.py
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,9 @@ def __init__(self,
self.averaging = averaging
self.variance = variance
self.gamma = gamma

# 09/25/2023 HarryCaveMan add model_filename and keep_tempfiles attr to `self` to comply with sklearn clone api
self.model_filename = model_filename
self.keep_tempfiles = keep_tempfiles
self.modelfile = FileResource(
filename=model_filename,
keep_tempfiles=keep_tempfiles,
Expand Down