File size: 424 Bytes
e58707f
 
 
 
 
00b1038
 
e58707f
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import pandas as pd


class TextDetector:
    def __init__(self):
        self.input = None

        self.prediction_label: list[str] = ["UNKNOWN"]
        self.prediction_score: list[float] = [0.0]

        self.grouped_url_df: pd.DataFrame = pd.DataFrame()

        # For formatting ouput tables
        self.ordinary_user_table: list = []
        self.fact_checker_table: list = []
        self.governor_table: list = []