kleister-nda/main.py

19 lines
335 B
Python
Raw Normal View History

2022-05-03 20:10:12 +02:00
import lzma
import spacy
def readInput(dir):
NDAs = []
with lzma.open(dir) as f:
for line in f:
NDAs.append(line.decode('utf-8'))
return NDAs
if __name__ == '__main__':
NDAs = readInput('train/in.tsv.xz')
ner = spacy.load('NER')
for nda in NDAs:
print('pass')