We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4cb6848 commit 99391deCopy full SHA for 99391de
text_sum/text_summarizer.py
@@ -15,3 +15,18 @@ def score_sentences(sentences):
15
print("Scoring sentences (placeholder)")
16
scores = {s: 1 for s in sentences}
17
return scores
18
+
19
+# text_summarizer.py (continued)
20
+def cluster_sentences(sentences):
21
+ print("Clustering sentences (placeholder)")
22
+ return sentences
23
24
+def main():
25
+ print("Welcome to the Text Summarizer App")
26
+ text = input("Enter your text to summarize: ")
27
28
+ sentences = extract_sentences(text)
29
+ scores = score_sentences(sentences)
30
+ clustered = cluster_sentences(sentences)
31
32
+ print("Summary (placeholder):", clustered)
0 commit comments