deepmorpheus/tag.py
def attempt_input_load(input_path):
    """Attempts to load the file at the provided path and return it as an array
    of lines. If the file does not exist we will exit the program since nothing
    useful can be done."""
    if not os.path.isfile(input_path):
        print("Input file does not exist: %s" % input_path)
        exit()

    print("Loading input from file: %s" % input_path)
    with open(input_path, "r", encoding='utf-8') as f:
        lines = f.readlines()
    return lines
Attempts to load the file at the provided path and return it as an array
    of lines. If the file does not exist we will exit the program since nothing
    useful can be done.
Attempts to load the file at the provided path and return it as an array
of lines. If the file does not exist we will exit the program since nothing
useful can be done.
Attempts to load the file at the provided path and return it as an array of lines . If the file does not exist we will exit the program since nothing useful can be done .
def attempt_input_load(input_path):
    if not os.path.isfile(input_path):
        print("Input file does not exist: %s" % input_path)
        exit()
    print("Loading input from file: %s" % input_path)
    with open(input_path, "r", encoding='utf-8') as f:
        lines = f.readlines()
    return lines
def attempt_input_load ( input_path ) : if not os . path . isfile ( input_path ) : print ( "Input file does not exist: %s" % input_path ) exit ( ) print ( "Loading input from file: %s" % input_path ) with open ( input_path , "r" , encoding = 'utf-8' ) as f : lines = f . readlines ( ) return lines
Attempts to load the file at the provided path and return it as an array
of lines.
Attempts to load the file at the provided path and return it as an array of lines .
"""Attempts to load the file at the provided path and return it as an array
    of lines. If the file does not exist we will exit the program since nothing
    useful can be done."""
input_path