English albert_xxlarge_v2_hoax_classifier_v1 AlbertForSequenceClassification from research-dump

Description

Pretrained AlbertForSequenceClassification model, adapted from Hugging Face and curated to provide scalability and production-readiness using Spark NLP.albert_xxlarge_v2_hoax_classifier_v1 is a English model originally trained by research-dump.

Download Copy S3 URI

How to use



document_assembler = DocumentAssembler() \
    .setInputCol("text") \
    .setOutputCol("documents")
    
    
sequenceClassifier = AlbertForSequenceClassification.pretrained("albert_xxlarge_v2_hoax_classifier_v1","en") \
            .setInputCols(["documents","token"]) \
            .setOutputCol("class")

pipeline = Pipeline().setStages([document_assembler, sequenceClassifier])

pipelineModel = pipeline.fit(data)

pipelineDF = pipelineModel.transform(data)



val document_assembler = new DocumentAssembler()
    .setInputCol("text") 
    .setOutputCol("embeddings")
    
val sequenceClassifier = AlbertForSequenceClassification  
    .pretrained("albert_xxlarge_v2_hoax_classifier_v1", "en")
    .setInputCols(Array("documents","token")) 
    .setOutputCol("class") 

val pipeline = new Pipeline().setStages(Array(document_assembler, sequenceClassifier))

val pipelineModel = pipeline.fit(data)

val pipelineDF = pipelineModel.transform(data)


Model Information

Model Name: albert_xxlarge_v2_hoax_classifier_v1
Compatibility: Spark NLP 5.1.2+
License: Open Source
Edition: Official
Input Labels: [documents, token]
Output Labels: [class]
Language: en
Size: 833.9 MB

References

https://huggingface.co/research-dump/albert-xxlarge-v2_hoax_classifier_v1