-
-
Notifications
You must be signed in to change notification settings - Fork 163
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Research Reference Citations - with CL #4978
Comments
This issue was not clear to me at first read. After talking with Bill I understand this issue is actually 2 sub-issues
For that, we would need to pickup some of the |
About sub-issue 1, <i>
<span class="citation" data-id="122248">
<a href="/opinion/122248/howsam-v-dean-witter-reynolds-inc/" aria-description="Citation for case: Howsam v. Dean Witter Reynolds, Inc.">
Howman
</i> at 85
</a>
</span> This is recognized as broken HTML, and causes the annotation to be skipped silently (see courtlistener/cl/citations/annotate_citations.py Lines 93 to 99 in 140108c
How to solve this?
|
What happens if you do |
In the specific case I was looking at, it's duplicating the (citing
<i>
<span class="citation" data-id="122248">
<a href="/opinion/122248/howsam-v-dean-witter-reynolds-inc/" aria-description="Citation for case: Howsam v. Dean Witter Reynolds, Inc.">
Howsam
</a>
</span>
</i>
<span class="citation" data-id="122248">
<a href="/opinion/122248/howsam-v-dean-witter-reynolds-inc/" aria-description="Citation for case: Howsam v. Dean Witter Reynolds, Inc.">
at 84
</a>
</span>, The text content of the original |
Oh, yeah, that's not great, eh? This same problem came up at my old job a dozen years ago. HTML! Seems like we need to identify that there's HTML before the token and then make sure it's inside too, so you wind up with: <span class="citation" data-id="122248">
<a href="/opinion/122248/howsam-v-dean-witter-reynolds-inc/"
aria-description="Citation for case: Howsam v. Dean Witter Reynolds, Inc.">
<i>Howman</i> at 85
</a>
</span> Is that possible? |
That's what I thought too as a possible solution:
I am trying to do it in Courtlistener; if it works maybe we can just do the fix on eyecite, or just leave it here |
Seems like the problem was already known but ignored 🙂 courtlistener/cl/citations/tests.py Lines 225 to 233 in 140108c
|
This problem echos through workplaces, projects, and code bases. :) |
Enable matching and annotation of new Reference Citations e.g. Smith at 211 in the html with citations generation.
The open question is really
The text was updated successfully, but these errors were encountered: