satyaalmasian / temporal_tagger_BERT_tokenclassifier

huggingface.co
Total runs: 431
24-hour runs: 32
7-day runs: 13
30-day runs: -124
Model's Last Updated: March 22 2023
token-classification

Introduction of temporal_tagger_BERT_tokenclassifier

Model Details of temporal_tagger_BERT_tokenclassifier

BERT based temporal tagged

Token classifier for temporal tagging of plain text using BERT language model. The model is introduced in the paper BERT got a Date: Introducing Transformers to Temporal Tagging and release in this repository .

Model description

BERT is a transformers model pretrained on a large corpus of English data in a self-supervised fashion. We use BERT for token classification to tag the tokens in text with classes:

O -- outside of a tag 
I-TIME -- inside tag of time 
B-TIME -- beginning tag of time
I-DATE -- inside tag of date 
B-DATE -- beginning tag of date
I-DURATION -- inside tag of duration 
B-DURATION -- beginning tag of duration
I-SET -- inside tag of the set 
B-SET -- beginning tag of the set

Intended uses & limitations

This model is best used accompanied with code from the repository . Especially for inference, the direct output might be noisy and hard to decipher, in the repository we provide alignment functions and voting strategies for the final output.

How to use

you can load the model as follows:

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

for inference use:

processed_text = tokenizer(input_text, return_tensors="pt")
result = model(**processed_text)
classification= result[0]

for an example with post-processing, refer to the repository . We provide a function merge_tokens to decipher the output. to further fine-tune, use the Trainer from hugginface. An example of a similar fine-tuning can be found here .

#Training data We use 3 data sources: Tempeval-3 , Wikiwars, Tweets datasets. For the correct data versions please refer to our repository .

#Training procedure The model is trained from publicly available checkpoints on huggingface ( bert-base-uncased ), with a batch size of 34. We use a learning rate of 5e-05 with an Adam optimizer and linear weight decay. We fine-tune with 5 different random seeds, this version of the model is the only seed=4. For training, we use 2 NVIDIA A100 GPUs with 40GB of memory.

Runs of satyaalmasian temporal_tagger_BERT_tokenclassifier on huggingface.co

431
Total runs
32
24-hour runs
32
3-day runs
13
7-day runs
-124
30-day runs

More Information About temporal_tagger_BERT_tokenclassifier huggingface.co Model

temporal_tagger_BERT_tokenclassifier huggingface.co

temporal_tagger_BERT_tokenclassifier huggingface.co is an AI model on huggingface.co that provides temporal_tagger_BERT_tokenclassifier's model effect (), which can be used instantly with this satyaalmasian temporal_tagger_BERT_tokenclassifier model. huggingface.co supports a free trial of the temporal_tagger_BERT_tokenclassifier model, and also provides paid use of the temporal_tagger_BERT_tokenclassifier. Support call temporal_tagger_BERT_tokenclassifier model through api, including Node.js, Python, http.

temporal_tagger_BERT_tokenclassifier huggingface.co Url

https://huggingface.co/satyaalmasian/temporal_tagger_BERT_tokenclassifier

satyaalmasian temporal_tagger_BERT_tokenclassifier online free

temporal_tagger_BERT_tokenclassifier huggingface.co is an online trial and call api platform, which integrates temporal_tagger_BERT_tokenclassifier's modeling effects, including api services, and provides a free online trial of temporal_tagger_BERT_tokenclassifier, you can try temporal_tagger_BERT_tokenclassifier online for free by clicking the link below.

satyaalmasian temporal_tagger_BERT_tokenclassifier online free url in huggingface.co:

https://huggingface.co/satyaalmasian/temporal_tagger_BERT_tokenclassifier

temporal_tagger_BERT_tokenclassifier install

temporal_tagger_BERT_tokenclassifier is an open source model from GitHub that offers a free installation service, and any user can find temporal_tagger_BERT_tokenclassifier on GitHub to install. At the same time, huggingface.co provides the effect of temporal_tagger_BERT_tokenclassifier install, users can directly use temporal_tagger_BERT_tokenclassifier installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

temporal_tagger_BERT_tokenclassifier install url in huggingface.co:

https://huggingface.co/satyaalmasian/temporal_tagger_BERT_tokenclassifier

Url of temporal_tagger_BERT_tokenclassifier

temporal_tagger_BERT_tokenclassifier huggingface.co Url

Provider of temporal_tagger_BERT_tokenclassifier huggingface.co

satyaalmasian
ORGANIZATIONS

Other API from satyaalmasian