File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed
src/python/txtai/pipeline/train Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change 4949 - name : Build
5050 run : |
5151 pip install -U wheel
52- pip install .[all,dev] onnx==1.17.0 skl2onnx==1.18.0
52+ pip install .[all,dev]
5353 pip cache purge
5454 python -c "import nltk; nltk.download(['punkt', 'punkt_tab', 'averaged_perceptron_tagger_eng'])"
5555 python --version
Original file line number Diff line number Diff line change 55from ..base import Pipeline
66
77try :
8+ # Workaround for issue with onnx 1.18 and onnxmltools 1.13
9+ import onnx
10+
11+ onnx .helper .split_complex_to_pairs = None
12+
813 from onnxmltools import convert_sklearn
9- from onnxmltools .convert .common .data_types import StringTensorType
1014
15+ from skl2onnx .common .data_types import StringTensorType
1116 from skl2onnx .helpers .onnx_helper import save_onnx_model , select_model_inputs_outputs
1217
1318 ONNX_MLTOOLS = True
You can’t perform that action at this time.
0 commit comments