Skip to content

Commit

Permalink
fix(annotate_citations): Tweaks to PR
Browse files Browse the repository at this point in the history
Add comment on order
and tweak test file to reflect xml ingestiong
  • Loading branch information
flooie committed Dec 12, 2024
1 parent 8423c77 commit b27a8bd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions cl/citations/annotate_citations.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ def get_and_clean_opinion_text(document: Opinion | RECAPDocument) -> None:
:param document: The Opinion or RECAPDocument whose text should be parsed
"""

# We prefer CAP data (xml_harvard) first.
for attr in [
"xml_harvard",
"html_anon_2020",
Expand Down
2 changes: 1 addition & 1 deletion cl/citations/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ def test_make_html_from_harvard_xml(self) -> None:
s=s,
expected_html=expected_html,
):
opinion = Opinion(html=s)
opinion = Opinion(xml_harvard=s)
get_and_clean_opinion_text(opinion)
citations = get_citations(
opinion.cleaned_text, tokenizer=HYPERSCAN_TOKENIZER
Expand Down

0 comments on commit b27a8bd

Please sign in to comment.