import spacy
from spacy.tokens import Doc
from SubjectObjectExtractor import SubjectObjectExtractor

nlp = spacy.load("en_core_web_md")
pipeline_component = SubjectObjectExtractor(nlp)
pipeline_component.adj_as_object = True
Doc.set_extension('svos', default=None)
nlp.add_pipe(pipeline_component, last=True)

file = open('test_text.txt', 'r')
i = 1
for line in file:
    print(i, line, end='')
    if not line.startswith('#'):
        doc = nlp(line)
        for svo in doc._.svos:
            print('    ', svo)
    i += 1

9beb996d4106e806f2cee8c0ee62faf28161a240
<mask token>

<mask token>
Doc.set_extension('svos', default=None)
nlp.add_pipe(pipeline_component, last=True)
<mask token>
for line in file:
    print(i, line, end='')
    if not line.startswith('#'):
        doc = nlp(line)
        for svo in doc._.svos:
            print('    ', svo)
    i += 1

<mask token>
nlp = spacy.load('en_core_web_md')
pipeline_component = SubjectObjectExtractor(nlp)
pipeline_component.adj_as_object = True
Doc.set_extension('svos', default=None)
nlp.add_pipe(pipeline_component, last=True)
file = open('test_text.txt', 'r')
i = 1
for line in file:
    print(i, line, end='')
    if not line.startswith('#'):
        doc = nlp(line)
        for svo in doc._.svos:
            print('    ', svo)
    i += 1

import spacy
from spacy.tokens import Doc
from SubjectObjectExtractor import SubjectObjectExtractor
nlp = spacy.load('en_core_web_md')
pipeline_component = SubjectObjectExtractor(nlp)
pipeline_component.adj_as_object = True
Doc.set_extension('svos', default=None)
nlp.add_pipe(pipeline_component, last=True)
file = open('test_text.txt', 'r')
i = 1
for line in file:
    print(i, line, end='')
    if not line.startswith('#'):
        doc = nlp(line)
        for svo in doc._.svos:
            print('    ', svo)
    i += 1

import spacy
from spacy.tokens import Doc
from SubjectObjectExtractor import SubjectObjectExtractor

nlp = spacy.load("en_core_web_md")
pipeline_component = SubjectObjectExtractor(nlp)
pipeline_component.adj_as_object = True
Doc.set_extension('svos', default=None)
nlp.add_pipe(pipeline_component, last=True)

file = open('test_text.txt', 'r')
i = 1
for line in file:
    print(i, line, end='')
    if not line.startswith('#'):
        doc = nlp(line)
        for svo in doc._.svos:
            print('    ', svo)
    i += 1
