How can I make the openIE input file format

28 Views Asked by At

I want to do OpenIE extraction and make the input file, but I cannot figure out the way to convert the raw sentence. My example is below:

Example(input raw sentence):

32.7 % of all households were made up of individuals and 15.7 % had someone living alone who was 65 years of age or older .

output:

32.7 % of all households were made up of individuals and 15.7 % had someone living alone who was 65 years of age or older . were made up of 32.7 % of all households    individuals

32.7 % of all households were made up of individuals and 15.7 % had someone living alone who was 65 years of age or older . had 15.7 % of all households    someone living alone who was 65 years of age or older

I know that the output file is the extracted one but I cannot find the code or the way to convert like output sentences

Is there any method to do so?

Please help!

I've already tried Ollie and OpenIE-5 but the output format is not that I want

0

There are 0 best solutions below