-
Notifications
You must be signed in to change notification settings - Fork 13
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 during command jina hub build FinBertQARanker/ --pull --test-uses --timeout-ready 60000 #2
Comments
Is it possible to avoid usage of attribute 'COL_MATCH_HASH' in code? |
New version fixes the FinBertQARanker build issue but now there is an error related to missing config.json file building FinBertQARanker/ takes 4 minutes and 30 seconds (270.76s) below is content of FinBertQARanker folder on my mac |
I followed your recommendations and after copying the files I got another error while running search
FinBertQARanker@6303[I]:post_init may take some time... I used command |
I'm also getting the same error when I run the command /.local/lib/python3.8/site-packages/jina/importer.py:134: UserWarning: due to the missing dependencies or bad implementations, ['jina.hub.encoders.nlp.VSETextEncoder', 'jina.hub.encoders.image.VSEImageEncoder'] can not be imported if you are using these executors/drivers, they wont work. You can use |
On macos I got
.../opt/anaconda3/lib/python3.7/site-packages/jina/importer.py:135: UserWarning: due to the missing dependencies or bad implementations, ['jina.hub.encoders.image.VSEImageEncoder', 'jina.hub.encoders.nlp.VSETextEncoder'] can not be imported if you are using these executors/drivers, they wont work. You can use
jina check
to list all executors and driversf'due to the missing dependencies or bad implementations, '
usage: jina [-h] [-v] [-vf]
{hello-world, pod, flow, gateway ... 7 more choices} ...
jina: error: unrecognized arguments: --timeout-ready 60000
This time I got AttributeError: 'FinBertQARanker' object has no attribute 'COL_MATCH_HASH'
HubIO@24673[I]: def score(
HubIO@24673[I]: self, query_meta: Dict, old_match_scores: Dict, match_meta: Dict
HubIO@24673[I]: ) -> "np.ndarray":
HubIO@24673[I]:
HubIO@24673[I]: # Compute new matching scores using a fine-tuned model.
HubIO@24673[I]: new_scores = [
HubIO@24673[I]: (
HubIO@24673[I]: match_id,
HubIO@24673[I]: self._get_score(query_meta['text'], match_meta[match_id]['text']),
HubIO@24673[I]: )
HubIO@24673[I]: for match_id, old_score in old_match_scores.items()
HubIO@24673[I]: ]
HubIO@24673[I]: return np.array(
HubIO@24673[I]: new_scores
HubIO@24673[I]: ,
HubIO@24673[I]:> dtype=[(self.COL_MATCH_HASH, np.int64), (self.COL_SCORE, np.float64)],
HubIO@24673[I]: )
HubIO@24673[I]:E AttributeError: 'FinBertQARanker' object has no attribute 'COL_MATCH_HASH'
HubIO@24673[I]:
HubIO@24673[I]:init.py:96: AttributeError
The text was updated successfully, but these errors were encountered: