bunsenfeng / FactKB

huggingface.co
Total runs: 137
24-hour runs: 6
7-day runs: -50
30-day runs: -340
Model's Last Updated: July 12 2023
text-classification

Introduction of FactKB

Model Details of FactKB

FactKB, a factuality metric. Work in progress.

Usage:

import torch
from transformers import AutoTokenizer, AutoModelForSequenceClassification

summary = "An elephant has been hit by a stone at a zoo in western france after it was hit by a tree."
article = "The stone got past the elephant's fence and a ditch separating the animal and visitors, the zoo said in a statement.The girl was taken to hospital and died within a few hours, the zoo added.The zoo statement said the enclosure met international standards and said 'this kind of accident is rare, unpredictable and unusual'.Africa Live: More on this and other storiesThe statement went on (in French) to point out two other recent incidents in the US:Phyllis Lee, Scientific Director of the Amboseli Trust for Elephants, says that targeted throwing of stones and branches by elephants is very unusual.'It can happen when elephants are frustrated or bored. In my opinion, it's unlikely the elephant was directly targeting the girl - but exhibiting frustration. You can't predict what animals in captivity will do.'The moments after the girl was struck at Rabat Zoo on Tuesday were filmed by a bystander and uploaded onto YouTube.The video shows the elephant waving its trunk behind a fence and swerves round to show a stone on the ground.Metres away people are gathered around the girl, holding her head and stroking her leg."
input = [[summary, article]]

tokenizer = AutoTokenizer.from_pretrained("roberta-base", padding="max_length", truncation=True)
factkb = AutoModelForSequenceClassification.from_pretrained("bunsenfeng/FactKB", num_labels = 2)

tokens = tokenizer(input, return_tensors="pt", padding="max_length", truncation=True)
result = torch.softmax(factkb(**tokens).logits, dim = 1)

print('The factuality score (0-1, 1 as factual) is: ', float(result[0][1]))

Runs of bunsenfeng FactKB on huggingface.co

137
Total runs
6
24-hour runs
-15
3-day runs
-50
7-day runs
-340
30-day runs

More Information About FactKB huggingface.co Model

FactKB huggingface.co

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

bunsenfeng FactKB online free

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

bunsenfeng FactKB online free url in huggingface.co:

https://huggingface.co/bunsenfeng/FactKB

FactKB install

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

FactKB install url in huggingface.co:

https://huggingface.co/bunsenfeng/FactKB

Url of FactKB

Provider of FactKB huggingface.co

bunsenfeng
ORGANIZATIONS

Other API from bunsenfeng

huggingface.co

Total runs: 13
Run Growth: 8
Growth Rate: 61.54%
Updated:December 14 2025
huggingface.co

Total runs: 6
Run Growth: 0
Growth Rate: 0.00%
Updated:March 06 2023
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:June 23 2024
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:June 23 2024