Пример #1
0
import sys
import summarisation

if len(sys.argv) < 2:
    print "usage: python read.py filename"
    quit()

filename = sys.argv[1]

sentences = summarisation.summarise(filename, debug_output=False)

print summarisation.outputspl(sentences)
# print sentences
Пример #2
0
import sys
import summarisation

if len(sys.argv) < 2:
    print "usage: python read.py filename"
    quit()

filename = sys.argv[1]

sentences = summarisation.summarise(filename, debug_output=True, co_ref=1)

print summarisation.outputspl(sentences)
# print sentences
Пример #3
0
import sys
import summarisation

if len(sys.argv) < 2:
    print "usage: python read.py filename"
    quit()

filename = sys.argv[1]

sentences = summarisation.summarise(filename,
                                    debug_output=False,
                                    co_ref=3,
                                    overlap=False)

print summarisation.outputspl(sentences)
# print sentences
Пример #4
0
import sys
import summarisation

if len(sys.argv) < 2:
    print "usage: python read.py filename"
    quit()

filename = sys.argv[1]

sentences = summarisation.summarise(filename,
                                    debug_output=False,
                                    page_rank=False,
                                    co_ref=False)

print summarisation.outputspl(sentences)
# print sentences