Closed sandylss closed 1 year ago
请问这是最新版的报错吗?
刚用最新的代码也试了一次,还是不行,而且会啥会卡住呢,就这个状态很久了
$ python3 chat_paper.py --query "polyimide" --filter_keys "polyimide" --max_results 10
Key word: reinforcement learning
Query: polyimide
Sort: SortCriterion.Relevance
all search:
0 Determination of Glass Transition Temperature of Polyimides from Atomistic Molecular Dynamics Simulations and Machine-Learning Algorithms 2020-01-24 05:46:31+00:00
1 Josephson Effect in Metal - Polyimide - Metal Sandwich Structures 2001-05-15 14:03:13+00:00
2 Terahertz metamaterials on free-standing highly-flexible polyimide substrates 2008-08-04 15:04:26+00:00
3 Inhibition of Polyimide Photodegradation by Incorporation of Titanate Nanotubes into a Composite 2020-04-02 14:43:27+00:00
4 A model for the degradation of polyimides due to oxidation 2010-11-24 18:39:52+00:00
5 Distributed opto-mechanical analysis of liquids outside standard fibers coated with polyimide 2019-04-29 08:13:01+00:00
6 UV Direct-Writing of Metals on Polyimide 2008-05-07 08:44:24+00:00
7 Temperature dependent characterization of optical fibres for distributed temperature sensing in hot geothermal wells 2012-06-08 08:09:42+00:00
8 Study of Black Phosphorus Using Angle-Resolved Polarized Raman Spectroscopy with 442 nm Excitation 2016-10-11 15:05:21+00:00
9 Modeling the Non-linear Viscoelastic Response of High Temperature Polyimides 2010-08-20 20:55:20+00:00
filter_keys: polyimide
筛选后剩下的论文数量:
filter_results: 10
filter_papers:
0 Determination of Glass Transition Temperature of Polyimides from Atomistic Molecular Dynamics Simulations and Machine-Learning Algorithms 2020-01-24 05:46:31+00:00
1 Josephson Effect in Metal - Polyimide - Metal Sandwich Structures 2001-05-15 14:03:13+00:00
2 Terahertz metamaterials on free-standing highly-flexible polyimide substrates 2008-08-04 15:04:26+00:00
3 Inhibition of Polyimide Photodegradation by Incorporation of Titanate Nanotubes into a Composite 2020-04-02 14:43:27+00:00
4 A model for the degradation of polyimides due to oxidation 2010-11-24 18:39:52+00:00
5 Distributed opto-mechanical analysis of liquids outside standard fibers coated with polyimide 2019-04-29 08:13:01+00:00
6 UV Direct-Writing of Metals on Polyimide 2008-05-07 08:44:24+00:00
7 Temperature dependent characterization of optical fibres for distributed temperature sensing in hot geothermal wells 2012-06-08 08:09:42+00:00
8 Study of Black Phosphorus Using Angle-Resolved Polarized Raman Spectroscopy with 442 nm Excitation 2016-10-11 15:05:21+00:00
9 Modeling the Non-linear Viscoelastic Response of High Temperature Polyimides 2010-08-20 20:55:20+00:00
All_paper: 10
paper_path: ./pdf_files/polyimide-2023-03-21-16/Determination of Glass Transition Temperature of Polyimides from Atomistic Molecular Dynamics Simulations and Machine-Learning Algorithms.pdf
section_page_dict {'Introduction': 0, 'Methods': 4, 'Discussion': 3}
0 Introduction 0
1 Methods 4
start_page, end_page: 4 3
2 Discussion 3
start_page, end_page: 3 37
paper_path: ./pdf_files/polyimide-2023-03-21-16/Josephson Effect in Metal - Polyimide - Metal Sandwich Structures.pdf
section_page_dict {'References': 5}
0 References 5
paper_path: ./pdf_files/polyimide-2023-03-21-16/Terahertz metamaterials on free-standing highly-flexible polyimide substrates.pdf
section_page_dict {}
paper_path: ./pdf_files/polyimide-2023-03-21-16/Inhibition of Polyimide Photodegradation by Incorporation of Titanate Nanotubes into a Composite.pdf
section_page_dict {'Abstract': 0, 'Introduction': 1, 'Discussion': 3, 'References': 9}
0 Abstract 0
1 Introduction 1
start_page, end_page: 1 3
2 Discussion 3
start_page, end_page: 3 9
3 References 9
start_page, end_page: 9 11
paper_path: ./pdf_files/polyimide-2023-03-21-16/A model for the degradation of polyimides due to oxidation.pdf
section_page_dict {'Abstract': 0, 'Introduction': 0, 'References': 10}
0 Abstract 0
1 Introduction 0
start_page, end_page: 0 10
2 References 10
start_page, end_page: 10 13
paper_path: ./pdf_files/polyimide-2023-03-21-16/Distributed opto-mechanical analysis of liquids outside standard fibers coated with polyimide.pdf
section_page_dict {'Abstract': 0}
0 Abstract 0
paper_path: ./pdf_files/polyimide-2023-03-21-16/UV Direct-Writing of Metals on Polyimide.pdf
section_page_dict {'Abstract': 0, 'Introduction': 0, 'Method': 0, 'Conclusion': 1, 'References': 3}
0 Abstract 0
1 Introduction 0
start_page, end_page: 0 0
2 Method 0
start_page, end_page: 0 1
3 Conclusion 1
start_page, end_page: 1 3
4 References 3
start_page, end_page: 3 4
请问这是最新版的报错吗?
或许跟我的python版本有关系吗? python版本
python -V
Python 2.7.16
python3 -V
Python 3.9.7
用python运行会报错 python chat_paper.py --query "polyimide" --filter_keys "polyimide" --max_results 3
> File "chat_paper.py", line 14
> SyntaxError: Non-ASCII character '\xe5' in file chat_paper.py on line 14, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
用python3运行会卡住 python3 chat_paper.py --query "polyimide" --filter_keys "polyimide" --max_results 2
> Key word: reinforcement learning
> Query: polyimide
> Sort: SortCriterion.Relevance
> all search:
> 0 Determination of Glass Transition Temperature of Polyimides from Atomistic Molecular Dynamics Simulations and Machine-Learning Algorithms 2020-01-24 05:46:31+00:00
> 1 Josephson Effect in Metal - Polyimide - Metal Sandwich Structures 2001-05-15 14:03:13+00:00
> filter_keys: polyimide
> 筛选后剩下的论文数量:
> filter_results: 2
> filter_papers:
> 0 Determination of Glass Transition Temperature of Polyimides from Atomistic Molecular Dynamics Simulations and Machine-Learning Algorithms 2020-01-24 05:46:31+00:00
> 1 Josephson Effect in Metal - Polyimide - Metal Sandwich Structures 2001-05-15 14:03:13+00:00
> All_paper: 2
> paper_path: ./pdf_files/polyimide-2023-03-22-11/Determination of Glass Transition Temperature of Polyimides from Atomistic Molecular Dynamics Simulations and Machine-Learning Algorithms.pdf
> section_page_dict {'Introduction': 0, 'Methods': 4, 'Discussion': 3}
> 0 Introduction 0
> 1 Methods 4
> start_page, end_page: 4 3
> 2 Discussion 3
> start_page, end_page: 3 37
> paper_path: ./pdf_files/polyimide-2023-03-22-11/Josephson Effect in Metal - Polyimide - Metal Sandwich Structures.pdf
> section_page_dict {'References': 5}
> 0 References 5
`
原则上,论文已经下载到本地了,但是和openai通信的过程中,出现了问题,大概率是网络或者api的问题
python3 chat_paper.py --query "polyimide" --filter_keys "polyimide" --max_results 3 Key word: reinforcement learning Query: polyimide Sort: SortCriterion.Relevance all search: 0 Determination of Glass Transition Temperature of Polyimides from Atomistic Molecular Dynamics Simulations and Machine-Learning Algorithms 2020-01-24 05:46:31+00:00 1 Josephson Effect in Metal - Polyimide - Metal Sandwich Structures 2001-05-15 14:03:13+00:00 2 Terahertz metamaterials on free-standing highly-flexible polyimide substrates 2008-08-04 15:04:26+00:00 filter_keys: polyimide 筛选后剩下的论文数量: filter_results: 3 filter_papers: 0 Determination of Glass Transition Temperature of Polyimides from Atomistic Molecular Dynamics Simulations and Machine-Learning Algorithms 2020-01-24 05:46:31+00:00 1 Josephson Effect in Metal - Polyimide - Metal Sandwich Structures 2001-05-15 14:03:13+00:00 2 Terahertz metamaterials on free-standing highly-flexible polyimide substrates 2008-08-04 15:04:26+00:00 All_paper: 3 paper_path: ./pdf_files/polyimide-2023-03-21-11/Determination of Glass Transition Temperature of Polyimides from Atomistic Molecular Dynamics Simulations and Machine-Learning Algorithms.pdf section_page_dict {'Introduction': 0, 'Methods': 4, 'Discussion': 3} 0 Introduction 0 1 Methods 4 start_page, end_page: 4 3 2 Discussion 3 start_page, end_page: 3 37 download_error: 'Introduction' paper_path: ./pdf_files/polyimide-2023-03-21-11/Josephson Effect in Metal - Polyimide - Metal Sandwich Structures.pdf section_page_dict {'References': 5} 0 References 5 download_error: 'Introduction' paper_path: ./pdf_files/polyimide-2023-03-21-11/Terahertz metamaterials on free-standing highly-flexible polyimide substrates.pdf section_page_dict {} download_error: 'Introduction' summary time: 70.32194209098816