Skip to content

Commit 99391de

Browse files
author
Chloe White
committed
added function for cluster sentences and connected main to the placeholder functions
1 parent 4cb6848 commit 99391de

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

text_sum/text_summarizer.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,18 @@ def score_sentences(sentences):
1515
print("Scoring sentences (placeholder)")
1616
scores = {s: 1 for s in sentences}
1717
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

Comments
 (0)