Better HN
topnewbestaskshowjobs
Log inSign up

shkr

26 karma · joined Nov 21, 2013 (13y ago) · 15 submissions

Submissions

comment 1w ago · link · parent

I kept turning messy reference lists into BibTeX by hand. GROBID is the standard tool, and it is good. It is also a Java server, and on less common citation styles it often gets the title or the journal wrong.

citeparse is a small token-classification model (32M or 150M parameters, Apache-2.0) in a pip package. You give it one reference per line and get CSL-JSON or BibTeX back. The 32M model parses about 118 references a second on a laptop CPU. There is also a browser demo where the model runs on the page: https://huggingface.co/spaces/hedwigai/citeparse

pip install citeparse citeparse refs.txt --bibtex citeparse check refs.txt For the benchmark I wanted labels nobody wrote by hand. So I took 700 reference strings exactly as publishers deposited them with Crossref, and scored each against the Crossref record of the DOI it cites. None of those DOIs were in training. GROBID 0.8.1 gets 71.1% of references fully right, and citeparse-150m gets 83.4%. GROBID still wins on its own held-out set (0.943 vs 0.900 field accuracy), which comes from the same sources as its training data.

citeparse check looks each parsed reference up on Crossref (and OpenAlex if you have a key). It reports ok, mismatch (the DOI points to a different paper), unregistered DOI, or not found. I tested it on 100 real references with their DOIs removed, and on 83 fakes made by putting one paper's title on another paper's authors and year. It accused none of the real ones. 89 matched and 11 came back "not found": old physics references with no title, an Italian law chapter, a Russian book. 80 of the 83 fakes came back "not found". So "not found" means "look at this one by hand", not "this is fake". The command exits 1 on a mismatch or a bad DOI, so it can run in CI on a paper's .bib.

Training data is GROBID's citation corpus (Apache-2.0) with its evaluation files removed, plus Crossref records (CC0) written out in 11 citation styles. The rebuild and benchmark scripts are in the repo, and the test set is on Hugging Face.

Write-up: https://www.hedwigai.com/blog/citeparse-reference-parsing

I'd like to hear where it breaks. I expect non-English references, law and humanities styles, and entries with editors to be the weak spots.

2.

Show HN: Citeparse: parse reference lists and flag invented citations on a CPU(github.com ↗)

1 points · by shkr · 1w ago · 1 comment

3.

The Qwen weight edits are fixing the repetition and works on non math as well(hedwigai.com ↗)

2 points · by shkr · 3w ago · discuss

comment 9y ago · link · parent

Amazed to see this one hacker news....I would be interested to find the investigation behind this report.

"Hey are people sick at a hospital somewhere not in australia, like india ?"

"Is it the season for lychees ?"

"Was there once a scientific study where they found this fruit was not perfect?"

"Google says so"

"Thanks I have an article to write. This will be useful for australians, and other folks importing lychee from southeast asia"

5.

Why I read books on history(medium.com ↗)

12 points · by shkr · 9y ago · 2 comments

comment 10y ago · link · parent

Yesterday, I opened whatsapp on my phone. During the last weeks I have been clicking on the `Not Now` option when whatsapp gave me the new terms and conditions. Yesterday, the not now option did not exist. This is not good.

comment 10y ago · link · parent

I think the title should have been more like "These are the great things that happened to me during my PhD"

8.

The Chair(medium.com ↗)

1 points · by shkr · 10y ago · discuss

9.

Effect of Photography on Time – Musings at SF MoMa(medium.com ↗)

1 points · by shkr · 10y ago · discuss

comment 10y ago · link · parent

It is hard to find startups where the hiring process and encouragement process of existing employees forms a key aspect of the day to day work. It is understandable how this falls into the blind spot. Many companies assume they have highly driven employees, hence this may not be necessary. However the occasional nudge goes a long way.

11.

Iit-guwahati-alumnus-on-being-part-of-creating-scientific-history(campusdiaries.com ↗)

5 points · by shkr · 10y ago · discuss

12.

How-penrose-geometry-has-given-iiit-allahabad-a-majestic-touch(campusdiaries.com ↗)

3 points · by shkr · 11y ago · discuss

13.

How different trajectory of science in India would be had Max Born joined IISc [pdf](dspace.rri.res.in ↗)

1 points · by shkr · 12y ago · discuss

14.

Just another blogging platform(campusdiaries.com ↗)

1 points · by shkr · 12y ago · discuss