cobs_index.classic_construct

classic_construct(input: str, out_file: str, index_params: cobs_index.ClassicIndexParameters = <cobs_index.ClassicIndexParameters object at 0x7f49d2030570>, file_type: str = 'any', tmp_path: str = '') None

Construct a COBS Classic Index from a path of input files.

Parameters
  • input (str) – path to the input directory or file

  • out_file (str) – path to the output .cobs_classic index file

  • index_params (ClassicIndexParameters) – instance of classic index parameter object

  • file_type (str) – filter input documents by file type (any, text, cortex, fasta, etc), default: any

  • tmp_path (str) – directory for intermediate index files, default: out_file + .tmp