Skip to content

Conversation

@Abdullahkhan5
Copy link

Added this method, because it gives this NotImplementedError instead

/usr/local/lib/python3.11/dist-packages/docling_core/transforms/chunker/hybrid_chunker.py in _patch(cls, data)
71 @classmethod
72 def _patch(cls, data: Any) -> Any:
---> 73 if isinstance(data, dict) and (tokenizer := data.get("tokenizer")):
74 max_tokens = data.get("max_tokens")
75 if isinstance(tokenizer, BaseTokenizer):
/usr/local/lib/python3.11/dist-packages/transformers/tokenization_utils_base.py in len(self)
1511
1512 def len(self) -> int:
-> 1513 raise NotImplementedError()
1514
1515 def get_vocab(self) -> Dict[str, int]:
NotImplementedError:

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

Successfully merging this pull request may close these issues.

2 participants