Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: 'Document' object not iterateable on Docker image. #21

Open
umairq opened this issue Oct 8, 2024 · 0 comments
Open

Error: 'Document' object not iterateable on Docker image. #21

umairq opened this issue Oct 8, 2024 · 0 comments

Comments

@umairq
Copy link

umairq commented Oct 8, 2024

I used the following string as input to the system extracting triples using relik-ie/relik-relation-extraction-large model. It works fine in demo but in docker image it resulted in error.
String: "PapiSlot : Situs Resmi Deposit via Pulsa / Transfer Bank IDN Slot IDN Slot Nama Game: 🎰IDN Slot🎰 Platform: 📱ANDROID📱 , 📲IOS📲 , 💻WINDOWS💻 , 🖥️OSX🖥️ , dan WEB Kategori: 🎮Game🎮 Minimal Deposit: 💰Rp 10.000💰 (FAQ) Pertanyaan Mengenai Situs Papislot : Situs Resmi IDN Slot"

It resulted in following error.

[2024-10-08 08:53:21,615] [ERROR] [relik.inference.serve.backend.fastapi_be.relik_endpoint:179] [PID:1] [RANK:0] 'Document' object is not iterable
Traceback (most recent call last):
  File "/home/relik-user/.local/lib/python3.10/site-packages/relik/inference/serve/backend/fastapi_be.py", line 164, in relik_endpoint
    return await self(
  File "/home/relik-user/.local/lib/python3.10/site-packages/relik/inference/serve/backend/fastapi_be.py", line 136, in __call__
    return [o.to_dict() for o in output]
  File "/home/relik-user/.local/lib/python3.10/site-packages/relik/inference/serve/backend/fastapi_be.py", line 136, in <listcomp>
    return [o.to_dict() for o in output]
  File "/home/relik-user/.local/lib/python3.10/site-packages/relik/inference/data/objects.py", line 117, in to_dict
    "triplet": [
  File "/home/relik-user/.local/lib/python3.10/site-packages/relik/inference/data/objects.py", line 118, in <listcomp>
    [[doc.to_dict() for doc in documents] for documents in window]
  File "/home/relik-user/.local/lib/python3.10/site-packages/relik/inference/data/objects.py", line 118, in <listcomp>
    [[doc.to_dict() for doc in documents] for documents in window]
TypeError: 'Document' object is not iterable
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant