#!/usr/bin/env python3

from schemata.parse.evaluate import evaluate, AttachmentSchema
from schemata.parse.maltparser.maltparser import MaltParser
import sys

if __name__ == '__main__':
    file = sys.argv[1]
    schemas = AttachmentSchema.from_plaintext_file(file)
    print(evaluate(schemas, MaltParser()))
#!/usr/bin/env python3

import nltk
import benepar
import sys

nltk.download('punkt')
benepar.download('benepar_en2')

from schemata.parse.evaluate import evaluate, AttachmentSchema
from schemata.parse.berkeley.berkeley import BerkeleyParser

if __name__ == '__main__':
    file = sys.argv[1]
    schemas = AttachmentSchema.from_plaintext_file(file)
    print(evaluate(schemas, BerkeleyParser()))
Esempio n. 3
0
#!/usr/bin/env python3

from schemata.parse.evaluate import evaluate, AttachmentSchema
from schemata.parse.supar.supar_parser import SuPar
import sys

if __name__ == '__main__':
    file = sys.argv[1]
    schemas = AttachmentSchema.from_plaintext_file(file)
    print(evaluate(schemas, SuPar()))
Esempio n. 4
0
#!/usr/bin/env python3

from schemata.parse.evaluate import evaluate, AttachmentSchema
from schemata.parse.supar_dep.supar_dep import SuParDependency
import sys

if __name__ == '__main__':
    file = sys.argv[1]
    schemas = AttachmentSchema.from_plaintext_file(file)
    print(evaluate(schemas, SuParDependency()))
#!/usr/bin/env python3

from schemata.parse.evaluate import evaluate, AttachmentSchema
from schemata.parse.stanford.stanford import StanfordParser
import sys
import stanza
stanza.install_corenlp()

if __name__ == '__main__':
    file = sys.argv[1]
    schemas = AttachmentSchema.from_plaintext_file(file)
    print(evaluate(schemas, StanfordParser()))