def test_correct_amount_of_events_should_be_extracted(): """ Test, if all events of the test-file marked_sentences.txt are extracted """ e = Event() e.read_file("test/test_articles/marked_sentences.txt") assert_equal(len(e.start_extraction()), 19)
def flask_start_extraction(wiki_text): e = Event() e.text = wiki_text e.text = remove_references(e.text) return e.start_extraction()
def test_start_extraction(): e = Event() e.read_file("test/test_articles/random_test.txt") e.text = remove_references(e.text) e.start_extraction()