We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a607aa1 commit 0469289Copy full SHA for 0469289
1 file changed
turftopic/models/keynmf.py
@@ -73,12 +73,9 @@ def __init__(
73
] = "sentence-transformers/all-MiniLM-L6-v2",
74
vectorizer: Optional[CountVectorizer] = None,
75
top_n: int = 25,
76
- keyword_scope: str = "document",
77
random_state: Optional[int] = None,
78
):
79
self.random_state = random_state
80
- if keyword_scope not in ["document", "corpus"]:
81
- raise ValueError("keyword_scope must be 'document' or 'corpus'")
82
self.n_components = n_components
83
self.top_n = top_n
84
self.encoder = encoder
0 commit comments