Mistake in readme?

#5
by felixn95 - opened

Hi,

I mean there is a misleading typo in the readme file in the chapter "Relations Extraction".

document_1=modelhub_dataset['test'][0]
relation = {
'source-head-sentence-ID': document_1['relations']['source-head-sentence-ID'][0],
'source-head-word-ID': document_1['relations']['source-head-word-ID'][0],
'relation-type': document_1['relations']['relation-type'][0],
'target-head-sentence-ID': document_1['relations']['target-head-sentence-ID'][0],
'target-head-word-ID': document_1['relations']['target-head-sentence-ID'][0], -> HERE
}
Shouldn't that be ['target-head-word-ID'] instead of again ['target-head-sentence-ID']?

Sign up or log in to comment