deepstruct icon indicating copy to clipboard operation
deepstruct copied to clipboard

Shell command for inference on raw data

Open RajNS02 opened this issue 1 year ago • 2 comments

Hi,

Thanks for your paper, it's really impressive. Could you pls tell what is the shell script command to run inference on raw data?

Thanks in advance. Best wishes.

RajNS02 avatar Apr 02 '23 18:04 RajNS02

@RajNS02 Did you manage to make it work?

barocsi avatar Apr 30 '24 18:04 barocsi

Thank you for your attention. There is currently no direct shell command for inference on raw data, as different structure prediction tasks have different input-output formats and evaluation measures. If you want to run inference on custom data, you need to:

  1. Define how the task data should be loaded and serialized in src/data_processing/datasets.py. Both TASK_MAPPING and the task class.
  2. Add the task config in src/data_processing/config.ini.
  3. If you need to evaluate, define the task's evaluation measures in src/glm/evaluate.py.
  4. Use the manager.py to inference. Examples are under src/tasks/mt.

Magolor avatar May 01 '24 16:05 Magolor