Skip to content

Commit fdc32ee

Browse files
committed
adjustments
1 parent cfc3424 commit fdc32ee

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: scripts/search/keywords/keyword_gen_md.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ def extract_tfidf_keywords(tfidf_matrix, feature_names, file_paths, num_keywords
215215
top_keywords = []
216216
for idx in sorted_indices:
217217
term = feature_names[idx]
218-
if tfidf_scores[idx] > 0.01 and len(top_keywords) < num_keywords:
218+
if tfidf_scores[idx] > 0.02 and len(top_keywords) < num_keywords:
219219
# Check if the term is in the disallow list
220220
if not any(disallowed_term.lower() in term.lower() for disallowed_term in disallow):
221221
top_keywords.append(term)
@@ -341,7 +341,7 @@ def write_keywords_to_files(files: List[str], file_keyword_map: Dict[str, List[s
341341

342342
def main():
343343
# Root directory to start processing markdown files. Will recurse through subdirs.
344-
docs_dir = "content/docs/"
344+
docs_dir = "content/docs/esc/"
345345

346346
# list of terms to exclude from generated keywords
347347
disallow = [

0 commit comments

Comments
 (0)