Skip to content

Instantly share code, notes, and snippets.

View georgepar's full-sized avatar

Giorgos Paraskevopoulos georgepar

View GitHub Profile
import argparse
import sys
from stream2sentence import generate_sentences
def file_or_pipe_input(file_path=None):
if file_path:
with open(file_path, "r", encoding="utf-8") as file:
yield file.read()
else: