mirror of
https://github.com/deepset-ai/haystack.git
synced 2025-09-25 16:15:35 +00:00
Add docstring
This commit is contained in:
parent
6038d40a53
commit
747f402544
@ -1,8 +1,7 @@
|
||||
import logging
|
||||
from scipy.special import expit
|
||||
import numpy as np
|
||||
|
||||
from haystack.database.base import Document
|
||||
import numpy as np
|
||||
from scipy.special import expit
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
@ -38,6 +37,7 @@ class Finder:
|
||||
results = {"question": question, "answers": []}
|
||||
return results
|
||||
|
||||
# 2) Apply reader to get granular answer(s)
|
||||
len_chars = sum([len(d.text) for d in documents])
|
||||
logger.info(f"Reader is looking for detailed answer in {len_chars} chars ...")
|
||||
results = self.reader.predict(question=question,
|
||||
|
Loading…
x
Reference in New Issue
Block a user