|
@@ -96,7 +96,7 @@ def run_one():
|
|
|
from BiddingKG.dl.interface.extract import predict
|
|
|
# filename = "比地_52_79929693.html"
|
|
|
#text = codecs.open("C:\\Users\\User\\Desktop\\数据20191014\\"+filename,"r",encoding="utf8").read()
|
|
|
- text = codecs.open("C:\\Users\\\Administrator\\Desktop\\2.html","r",encoding="utf8").read()
|
|
|
+ text = codecs.open("C:\\Users\\\Administrator\\Desktop\\test12354.txt","r",encoding="utf8").read()
|
|
|
# text = codecs.open("2.html","r",encoding="utf8").read()
|
|
|
content = str(BeautifulSoup(text).find("div",id="pcontent"))
|
|
|
a = time.time()
|
|
@@ -105,10 +105,13 @@ def run_one():
|
|
|
# '''
|
|
|
print("start")
|
|
|
_time1 = time.time()
|
|
|
- print(predict("12", content,"打印机",original_docchannel=52))
|
|
|
+ print(predict("12", text,"打印机"))
|
|
|
# test(12,content)
|
|
|
# test(12,text)
|
|
|
print("takes",time.time()-a)
|
|
|
+ # a = time.time()
|
|
|
+ # print(predict("12", text,"打印机"))
|
|
|
+ # print("takes", time.time() - a)
|
|
|
pass
|
|
|
|
|
|
if __name__=="__main__":
|