| Modifier and Type | Field and Description |
|---|---|
| private static final Pattern | CITE_PATTERN
Support |
| private static final Pattern | |
| private static final Pattern | |
| private static final Pattern | |
| private static final Pattern | |
| private static final Pattern | |
| private static final Pattern | |
| private static final Pattern |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private String | |
| public String | |
| public List | parseRelatedWork(String text)
This method first cuts long texts into separate sentence segments, and then parse these sentences. |
| public List | |
| private List | splitCitation(String citation)
Split citations groups by comma, and then split into single citation by connector (if contains) |
| CITE_PATTERN | back to summary |
|---|---|
| private static final Pattern CITE_PATTERN Support | |
| HYPHENATED_LINE_BREAK_PATTERN | back to summary |
|---|---|
| private static final Pattern HYPHENATED_LINE_BREAK_PATTERN | |
| NEWLINE_WITHOUT_SENTENCE_END_PATTERN | back to summary |
|---|---|
| private static final Pattern NEWLINE_WITHOUT_SENTENCE_END_PATTERN | |
| SEGMENT_SPLIT_PATTERN | back to summary |
|---|---|
| private static final Pattern SEGMENT_SPLIT_PATTERN | |
| SPACE_BEFORE_PUNCTUATION_PATTERN | back to summary |
|---|---|
| private static final Pattern SPACE_BEFORE_PUNCTUATION_PATTERN | |
| TRAILING_CONJUNCTION_PATTERN | back to summary |
|---|---|
| private static final Pattern TRAILING_CONJUNCTION_PATTERN | |
| TRAILING_CONJUNCTION_WITH_PUNCTUATION_PATTERN | back to summary |
|---|---|
| private static final Pattern TRAILING_CONJUNCTION_WITH_PUNCTUATION_PATTERN | |
| WHITESPACE_PATTERN | back to summary |
|---|---|
| private static final Pattern WHITESPACE_PATTERN | |
| RelatedWorkTextParser | back to summary |
|---|---|
| public RelatedWorkTextParser() | |
| extractContextText | back to summary |
|---|---|
| private String extractContextText(String text) Remove citationKeys | |
| getNormalText | back to summary |
|---|---|
| public String getNormalText(String text) Some long words may contain a hyphen and a newline symbol. This method transforms these words into normal ones. | |
| parseRelatedWork | back to summary |
|---|---|
| public List This method first cuts long texts into separate sentence segments, and then parse these sentences. | |
| parseTextSegment | back to summary |
|---|---|
| public List Parse a sentence into citationKeys and text. | |
| splitCitation | back to summary |
|---|---|
| private List Split citations groups by comma, and then split into single citation by connector (if contains) | |