File tree Expand file tree Collapse file tree 1 file changed +0
-110
lines changed
jablib/src/main/java/org/jabref/logic/importer Expand file tree Collapse file tree 1 file changed +0
-110
lines changed Original file line number Diff line number Diff line change 66import org .jabref .model .entry .field .Field ;
77import org .jabref .model .entry .field .FieldFactory ;
88
9- /**
10- * Enriches
11- * a
12- * BibEntry
13- * with
14- * contextual
15- * summaries
16- * extracted
17- * from
18- * a
19- * paper's
20- * "Related
21- * Work"
22- * /
23- * literature
24- * review
25- * section.
26- * For
27- * each
28- * reference
29- * mentioned
30- * in
31- * the
32- * related-work
33- * section,
34- * this
35- * class
36- * adds
37- * a
38- * descriptive
39- * note
40- * to
41- * the
42- * corresponding
43- * BibEntry
44- * field
45- * in
46- * the
47- * format:
48- * [CitingPaperKey]:
49- * Summary
50- * sentence.
51- * The
52- * note
53- * is
54- * stored
55- * under
56- * a
57- * user-specific
58- * field
59- * name
60- * like
61- * "comment-<username>".
62- * If
63- * the
64- * field
65- * already
66- * contains
67- * text,
68- * the
69- * new
70- * block
71- * is
72- * appended
73- * after
74- * a
75- * blank
76- * line.
77- */
789public class RelatedWorkAnnotator {
79-
80- /**
81- * Appends
82- * a
83- * related-work
84- * summary
85- * to
86- * the
87- * given
88- * BibEntry.
89- *
90- * @param entry The
91- * BibEntry
92- * being
93- * annotated
94- * @param username The
95- * username
96- * to
97- * build
98- * the
99- * comment
100- * field
101- * (e.g.,
102- * "koppor"
103- * →
104- * "comment-koppor")
105- * @param citingPaperKey The
106- * citation
107- * key
108- * of
109- * the
110- * source
111- * paper
112- * (e.g.,
113- * "LunaOstos_2024")
114- * @param summarySentence The
115- * extracted
116- * related-work
117- * summary
118- * text
119- */
12010 public static void appendSummaryToEntry (
12111 BibEntry entry ,
12212 String username ,
You can’t perform that action at this time.
0 commit comments