File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed
Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change 1- # Copyright 2025 Scientific Knowledge Organization (SciKnowOrg) Research Group.
1+ # Copyright 2025 Scientific Knowledge Organization (SciKnowOrg) Research Group.
22#
33# Licensed under the Apache License, Version 2.0 (the "License");
44# you may not use this file except in compliance with the License.
@@ -306,6 +306,15 @@ def __str__(self):
306306 """
307307 return "OpenAILLM"
308308
309+ def load (self , path : str ) -> None :
310+ """
311+ Loads the tokenizer and model from the specified path.
312+
313+ Args:
314+ path (str): The path to the pretrained model and tokenizer.
315+ """
316+ self .path = path
317+
309318 def tokenize (self , input_data : List ) -> Any :
310319 """
311320 Tokenizes the input data. For OpenAI models, it returns the input data as is.
You can’t perform that action at this time.
0 commit comments