Skip to content

Commit 2b8fdf4

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 6d4ae09 commit 2b8fdf4

25 files changed

+11
-21
lines changed

notebooks/demo2/cascade_mask_rcnn_hrnetv2p_w32_20e_v2.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Model settings."""
2+
23
model = dict(
34
type="CascadeRCNN",
45
# num_stages=3,

notebooks/demo2/config.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Default runtime config."""
2+
23
import pathlib
34
import os
45
import yaml

notebooks/demo2/config_farm_train.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
"""Config FARM Training."""
22

3-
43
import pathlib
54
import os
65
from farm.modeling.prediction_head import TextClassificationHead

src/components/preprocessing/base_component.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
"""BaseComponent."""
22

3-
43
from abc import ABC, abstractmethod
54

65

src/components/preprocessing/base_curator.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
"""BaseCurator."""
22

3-
43
import re
54
from abc import abstractmethod
65

src/components/preprocessing/base_kpi_inference_curator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ def return_sliced_squad(self, squad_json, indices):
197197
return {}
198198

199199
pdf2pars = defaultdict(list)
200-
for (i1, i2) in indices:
200+
for i1, i2 in indices:
201201
pdf2pars[i1].append(i2)
202202

203203
data = []

src/components/preprocessing/curator.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
"""Curator."""
22

3-
43
import glob
54
import logging
65

src/components/preprocessing/extractor.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
"""Extractor class."""
22

3-
43
from .pdf_table_extractor import PDFTableExtractor
54
from .pdf_text_extractor import PDFTextExtractor
65
import logging

src/components/preprocessing/kpi_inference_curator.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,7 @@ def clean(self, df):
103103
Args:
104104
df (A pandas dataframe)
105105
"""
106+
106107
# map kpi to question
107108
def map_kpi(r):
108109
try:

src/components/preprocessing/nq_curator.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
"""Processing nq curator."""
22

3-
43
import logging
54
import os
65
from ast import literal_eval

0 commit comments

Comments
 (0)