<commit_before><commit_msg>Initial smoke test of trips_api<commit_after>from belpy.pysb_assembler import PysbAssembler
from belpy.trips import trips_api

def test_trips_processor():
    """Smoke test to see if imports and executes without error. Doesn't
    check for correctness of parse or of assembled model."""
    pa = PysbAssembler()
    tp = trips_api.process_text('BRAF phosphorylates MEK1 at Ser222')
    pa.add_statements(tp.belpy_stmts)
    model = pa.make_model()
{'fraction_non_alphanumeric': 0.07789473684210527, 'fraction_numerical': 0.008421052631578947, 'mean_word_length': 4.8765432098765435, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2851037', 'n_tokens_mistral': 161, 'n_tokens_neox': 151, 'n_words': 45}