def trips_process_text():
    """Process text with TRIPS and return INDRA Statements."""
    if request.method == 'OPTIONS':
        return {}
    response = request.body.read().decode('utf-8')
    body = json.loads(response)
    text = body.get('text')
    tp = trips.process_text(text)
    return _stmts_from_proc(tp)
def trips_process_text ( ) : if request . method == 'OPTIONS' : return { } response = request . body . read ( ) . decode ( 'utf-8' ) body = json . loads ( response ) text = body . get ( 'text' ) tp = trips . process_text ( text ) return _stmts_from_proc ( tp )
Process text with TRIPS and return INDRA Statements.