Skip to content

How to tag dates using the model temporal_tagger_DATEBERT_tokenclassifier #12

@pratikchhapolika

Description

@pratikchhapolika

I am using this code to load the model and the tokenizer:

tokenizer = AutoTokenizer.from_pretrained("satyaalmasian/temporal_tagger_DATEBERT_tokenclassifier", use_fast=False)
model = tr.BertForTokenClassification.from_pretrained("satyaalmasian/temporal_tagger_DATEBERT_tokenclassifier")

I have a list of text:

examples=['Texas DRIVER LICENSE Class AM 04/10/2014', 'N. Joy Driving DOB 09/21/1990']

How do I now pass this into the model to get proper tagging of dates? Sorry little confused.

@dennlinger

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions