Skip to content

IndexError: index 99 is out of bounds for axis 0 with size 35 #33

Description

@abdoelsayed2016

Hi

I create a custom index and finished all steps but when I test it i faced this error

 File "/DensePhrases/densephrases/index.py", line 507, in search
    outs = self.search_phrase(
  File "/DensePhrases/densephrases/index.py", line 428, in search_phrase
    out = [{
  File "/DensePhrases/densephrases/index.py", line 431, in <listcomp>
    'end_pos': (groups_all[doc_idx]['word2char_end'][groups_all[doc_idx]['f2o_start'][end_idx]].item()
IndexError: index 99 is out of bounds for axis 0 with size 35

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions