2017-02-20 6 views
0

검색 문서 & 순위 문서에서 제공하는 train.py 스크립트를 실행하여 순위를 만들려고합니다.train.py 스크립트로 ranker 훈련

가 나는 열하 만들려고 다음 명령을 실행 :

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 

을 내 PATH 환경 변수는 PATH 변수에 추가 한 후에도 여전히 동일한 오류를 표시합니다 ...

답변

1

스크립트는 solr 및 ranker URL에 연결되는 curl 명령을 실행합니다. 이 오류는 방화벽 문제로 인한 것입니다. 방화벽 외부에서 스크립트를 실행하십시오.

+0

그것이 작동하지 않는 이유입니다. 내 컬이 작동하지 않고, 단지 윈도우 PATH에 컬을 추가 했으므로 이제 작동 중입니다! 고맙습니다. –