Example #1
0
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)
Example #2
0
def flask_start_extraction(wiki_text):
    e = Event()
    e.text = wiki_text
    e.text = remove_references(e.text)
    return e.start_extraction()
Example #3
0
def flask_start_extraction(wiki_text):
    e = Event()
    e.text = wiki_text
    e.text = remove_references(e.text)
    return e.start_extraction()
Example #4
0
def test_start_extraction():
    e = Event()
    e.read_file("test/test_articles/random_test.txt")
    e.text = remove_references(e.text)
    e.start_extraction()
Example #5
0
def test_start_extraction():
    e = Event()
    e.read_file("test/test_articles/random_test.txt")
    e.text = remove_references(e.text)
    e.start_extraction()