0
我目前正試圖通過運行中檢索&排名文檔中提供的train.py
腳本來創建一個排序器訓練一個排序器。與train.py腳本
我發出試圖創建排名器時,下面的命令:
train.py -u usernameHere:PasswordHere -i Mainframe_Batch_Automation_CA7.csv -c clusterIdHere -x Mainframe_Batch_Automation_CA7 -n Mainframe_Batch_Automation_CA7
我收到以下錯誤:
Input file is Mainframe_Batch_Automation_CA7.csv
Solr cluster is sc0c2398d4_d087_4516_99dd_10c25cc06b0a
Solr collection is Mainframe_Batch_Automation_CA7
Ranker name is Mainframe_Batch_Automation_CA7
Rows per query 10
Generating training data...
Traceback (most recent call last):
File "C:\Users\IBM_ADMIN\Documents\Retrieve & Rank\train.py", line 83, in <module>
process = subprocess.Popen(shlex.split(curl_cmd), stdout=subprocess.PIPE)
File "C:\Python27\lib\subprocess.py", line 390, in __init__
errread, errwrite)
File "C:\Python27\lib\subprocess.py", line 640, in _execute_child
startupinfo)
WindowsError: [Error 2] The system cannot find the specified file
起初我還以爲是因爲Python的不是我PATH環境變量,但它添加到PATH變量後,它仍然給了我同樣的錯誤......
這就是爲什麼它不工作...不工作,我只是說捲曲Windows路徑我捲曲,現在,它的工作!謝謝。 –