Skip to content

About Time and Value arguments #4

@zyf-zone

Description

@zyf-zone

Dear Author:

When i use the file you provided to process the data i got this error:

Traceback (most recent call last):
 File "./preprocess/save_dataset.py", line 305, in
  read_from_source(args)
 File "./preprocess/save_dataset.py", line 289, in read_from_source
  raw_data = read_data_from(path, config.tokenizer, ace=args.ace)
 File "F:\Event_Query_Extract-main.\utils\data_to_dataloader.py", line 120, in read_data_from
  output = list(map(partial(unpack_ace_with_vt, tokenizer=tokenizer), output))
 File "F:\Event_Query_Extract-main.\utils\data_to_dataloader.py", line 60, in _unpack_ace_with_vt
  entities = data[-5].split(' ')
IndexError: list index out of range

I checked the code and guessed the possible cause of the problem
After run python preprocess/ace/read_args_with_entity_ace.py
I found the content of the output file as follows:

'Text'
'B-I-O TAG'
'xxxxxxxxxxx.csv'

It is seems to contradict function _unpack_ace_with_vt
Where is the Time and Value arguments and where is the POS-TAG?
What should I do?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions