The codes always returns
File "D:\kg2text-master\graph2text\onmt\bin\preprocess.py", line 241, in count_features
first_tok = f.readline().split(None, 1)[0]
It turns out that the file "train-surfaces.txt" and "train-surfaces-bpe.txt" is empty.
I fount it maybe caused by line 155 : l = l.firstChild.nodeValue.strip().lower()
It always return <DOM Text node "'\n\t\t\t\t'">
I mean there is nothing in there .Is that right?
The codes always returns
File "D:\kg2text-master\graph2text\onmt\bin\preprocess.py", line 241, in count_features
first_tok = f.readline().split(None, 1)[0]
It turns out that the file "train-surfaces.txt" and "train-surfaces-bpe.txt" is empty.
I fount it maybe caused by line 155 : l = l.firstChild.nodeValue.strip().lower()
It always return <DOM Text node "'\n\t\t\t\t'">
I mean there is nothing in there .Is that right?