Sort by

recency

|

62 Discussions

|

  • + 0 comments

    Moving from paragraphs to sentences is essentially about breaking down larger blocks of text into their fundamental units — individual sentences. Paragraphs are composed of multiple sentences that work together to develop a central idea or theme. When focusing on sentences, one hones in on the specific statements, claims, or details that convey meaning clearly and concisely. गोल्ड 365 महादेव

  • + 0 comments

    If you’re serious about streamlining operations and offering a modern, memorable experience to your guests, a qr code menu example is the way to go. With OddMenu’s fast and flexible setup, you can get started today—no tech skills required. Need to update prices, remove a sold-out item, or launch a seasonal special? With a QR menu, updates happen in real time—no reprinting necessary. Say goodbye to constant reprints and design changes. One digital menu can serve all your needs with minimal overhead.

  • + 0 comments

    AI Sigil: Elevating AI governance with automated tools for policy creation, audits, and legal documents. Ethics and compliance made simple. EU AI Act solutions

  • + 1 comment
    import re
    s = input()
    
    
    pattern = r'(?<!")([.?!])(?!")'
    split_text = re.split(pattern, s)
    #merge back the sentence + last character
    merged_list = [split_text[i] + split_text[i + 1] for i in range(0, len(split_text) - 1, 2)]
    
    #check for words <= 2 and anding on a fullstop. These are like Dr. Mr. Ms. etc and merge these back
    new_text = []
    do_continue = False
    for i in range(len(merged_list) - 1):
        #print(i, "new_text: " , merged_list[i])
        if do_continue:
            do_continue = False
            continue
            
        if len(merged_list[i].strip()) <= 3 and merged_list[i][-1] == ".":
            new_text[-1] = new_text[-1] + " " + merged_list[i].strip()
            new_text[-1] = new_text[-1] + " " + merged_list[i+1].strip()
    				#skip the next entry in the list
            do_continue = True
        else:
            new_text.append(merged_list[i])
            
    for i in new_text:   
         print(i)
    
  • + 0 comments

    light