Downloads · 30 days
23
2% of all-time downloads
ayansinha/lic-class-scancode-bert-base-cased-L32-1
lic-class-scancode-bert-base-cased-L32-1 is a fill-mask model from ayansinha. Use it when you need the model to fill a missing word. It is set up for transformers. The card lists the license as apache-2.0.
This model is intended to be used for Sentence Classification which is used for results analysis in scancode-results-analyzer.
Downloads · 30 days
23
2% of all-time downloads
All-time downloads
924
Public
Repo size
434 MB
Likes
0
Public
Click a slice to open those files.
.h5434 MB · 100%
From the Hugging Face model README
lic-class-scancode-bert-base-cased-L32-1This model is intended to be used for Sentence Classification which is used for results
analysis in scancode-results-analyzer.
scancode-results-analyzer helps detect faulty scans in scancode-toolkit by using statistics and nlp modeling, among other tools,
to make Scancode better.
Refer quickstart section in scancode-results-analyzer documentation, for installing and getting started.
Then in NLPModelsPredict class, function predict_basic_lic_class uses this classifier to
predict sentances as either valid license tags or false positives.
As this model is a fine-tuned version of the bert-base-cased model,
it has the same biases, but as the task it is fine-tuned to is a very specific task
(license text/notice/tag/referance) without those intended biases, it's safe to assume
those don't apply at all here.
The BERT model was pretrained on BookCorpus, a dataset consisting of 11,038 unpublished books and English Wikipedia (excluding lists, tables and headers).
Then this bert-base-cased model was fine-tuned on Scancode Rule texts, specifically
trained in the context of sentence classification, where the four classes are
- License Text
- License Notice
- License Tag
- License Referance
For fine-tuning procedure and training, refer scancode-results-analyzer code.
In NLPModelsTrain class, function prepare_input_data_false_positive prepares the
training data.
In NLPModelsTrain class, function train_basic_false_positive_classifier fine-tunes
this classifier.
Note: The classes aren't balanced.