lol1lol
Joined 5 years ago
Joined 5 years ago
The hackability quotient of AllenNLP is way low.
I'll give you specific examples where AllenNLP overdid it, while HuggingFace was better just by keeping it simple.
Vocabulary class. HuggingFace just used a python dictionary. I can't think of one person who said they needed higher level abstraction. Turns out a python dictionary is pickle-able, saving to a text file is one line code, while the AbstractSinglettonProxyVocabulary is not and no one wants to care in the first place.
Tokenizer class. HuggingFace just used a python dictionary to return strings and integers. I can't think of one person frustrated by it. It's printable, picklable, and everything in between people can fiddle with. And boy where do I start about AllenNLP's overdoing of Tokenizers.
Trainer class. vs. HuggingFace example scripts. The scripts are just much more readable, tweakable, debuggable etc. HF didn't bother with AbstractBaseTrainer class bs.
It just shows they never understood the playing field.
- First, I don't think anyone thought AllenNLP was a good choice for high performance production systems. Again HuggingFace clearly understood the problem and built a fast tokenizer in Rust.
- A math, physics, linguistics, or even CS PhD student who know basics of coding would prefer bare bone scripts. They just want to hack it off and focus on research. Writing good code is not their objective.
Just my opinion.
"For decades the numbers have told us that each time the capacity utilization figure moves over 85 percent, the inflation rate rises, and also that each inflation cycle tends to peak at a higher level than the preceding one. During this inflation cycle, we expect capacity utilization to cross the 85 percent line by early 1985, when the CPI should be running at an annual rate of 7.8 percent and well on its way to a cyclical peak of about 11.5 percent sometime in 1986." - Raymond T. Dalio, New York Times, Jun 17, 1984
Industrial production from Jun 1982 through Jun 1984: http://research.stlouisfed.org/fred2/graph/?g=rU2
Inflation from Jun 1984 through Jun 1986: http://research.stlouisfed.org/fred2/graph/?g=rU3
https://twitter.com/ResNeXtGuesser/status/153459613350625280...
I ain't even gonna explain it.
I've studied MITx Microeconomics course. It appears undergrad level Micro course, and a background in machine learning and software engineering.
But hey, I was able to read the code, fix that small thing that needed to work for my case and ran my experiment.
I could never do that in AllenNLP. Go figure.