argscichat_allennlp/utility/json_utils.py
def load_jsonl(input_path) -> list:
    """
    Read list of objects from a JSON lines file.
    """
    data = []
    with open(input_path, 'r', encoding='utf-8') as f:
        for line in f:
            data.append(simplejson.loads(line.rstrip('\n|\r')))
    print('Loaded {} records from {}'.format(len(data), input_path))
    return data

    Read list of objects from a JSON lines file.
    
Read list of objects from a JSON lines file.
Read list of objects from a JSON lines file .
def load_jsonl(input_path) -> list:
    data = []
    with open(input_path, 'r', encoding='utf-8') as f:
        for line in f:
            data.append(simplejson.loads(line.rstrip('\n|\r')))
    print('Loaded {} records from {}'.format(len(data), input_path))
    return data
def load_jsonl ( input_path ) -> list : data = [ ] with open ( input_path , 'r' , encoding = 'utf-8' ) as f : for line in f : data . append ( simplejson . loads ( line . rstrip ( '\n|\r' ) ) ) print ( 'Loaded {} records from {}' . format ( len ( data ) , input_path ) ) return data
Read list of objects from a JSON lines file.
Read list of objects from a JSON lines file .
"""
    Read list of objects from a JSON lines file.
    """
input_path