Source analyze
labridge.func_modules.paper.parse.extractors.source_analyze
¶
labridge.func_modules.paper.parse.extractors.source_analyze.PaperSourceAnalyzer
¶
This class analyze the source of the paper, such as 'Nature', 'IEEE'.
In default, the source analysis bases on keyword occurrence count. Also, LLM can be used to help analyzing the source.
PARAMETER | DESCRIPTION |
---|---|
llm |
The used LLM.
TYPE:
|
service_context |
The service context.
TYPE:
|
keyword_count_threshold |
A PaperSource is selected as a candidate only if its corresponding keyword occurrence count exceed this threshold.
TYPE:
|
Source code in labridge\func_modules\paper\parse\extractors\source_analyze.py
16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 |
|
labridge.func_modules.paper.parse.extractors.source_analyze.PaperSourceAnalyzer.analyze_source(paper_path, use_llm=False)
¶
Sequentially use reader_analyze
, keyword_analyze
, and llm_analyze
to analyze the paper source
PARAMETER | DESCRIPTION |
---|---|
paper_path |
The paper path.
TYPE:
|
use_llm |
Whether to use
TYPE:
|
RETURNS | DESCRIPTION |
---|---|
PaperSource
|
PaperSource |
Source code in labridge\func_modules\paper\parse\extractors\source_analyze.py
97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 |
|
labridge.func_modules.paper.parse.extractors.source_analyze.PaperSourceAnalyzer.keyword_analyze(paper_path)
¶
Analyze the paper source based on keyword occurrence count.
PARAMETER | DESCRIPTION |
---|---|
paper_path |
The paper path.
TYPE:
|
RETURNS | DESCRIPTION |
---|---|
PaperSource
|
The analyzed paper source.
TYPE:
|
Source code in labridge\func_modules\paper\parse\extractors\source_analyze.py
68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 |
|
labridge.func_modules.paper.parse.extractors.source_analyze.PaperSourceAnalyzer.llm_analyze(paper_path)
¶
Source code in labridge\func_modules\paper\parse\extractors\source_analyze.py
64 65 66 |
|
labridge.func_modules.paper.parse.extractors.source_analyze.PaperSourceAnalyzer.reader_analyze(paper_path)
¶
Analyze the paper source using a structured pdf reader.
PARAMETER | DESCRIPTION |
---|---|
paper_path |
The paper path.
TYPE:
|
RETURNS | DESCRIPTION |
---|---|
PaperSource
|
The paper source.
TYPE:
|
Source code in labridge\func_modules\paper\parse\extractors\source_analyze.py
38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 |
|