зеркало из https://github.com/microsoft/reconner.git
skip these dumb files in isort
This commit is contained in:
Родитель
9c10c510a8
Коммит
eb7f42deee
|
@ -1,15 +1,13 @@
|
|||
# isort:skip_file
|
||||
# type: ignore
|
||||
|
||||
|
||||
from collections import Counter, defaultdict
|
||||
import copy
|
||||
import random
|
||||
from collections import Counter, defaultdict
|
||||
from typing import Dict, Iterable, List, Optional, Union
|
||||
|
||||
import catalogue
|
||||
import prodigy
|
||||
import spacy
|
||||
import srsly
|
||||
from prodigy.components.db import connect
|
||||
from prodigy.components.loaders import get_stream
|
||||
from prodigy.components.preprocess import add_tokens
|
||||
|
@ -22,10 +20,12 @@ from prodigy.util import (
|
|||
set_hashes,
|
||||
split_string,
|
||||
)
|
||||
import spacy
|
||||
import srsly
|
||||
from wasabi import msg
|
||||
from recon.constants import NONE
|
||||
from recon.types import HardestExample
|
||||
from recon.validation import remove_overlapping_entities
|
||||
from wasabi import msg
|
||||
|
||||
|
||||
def make_span_hash(span: Dict):
|
||||
|
|
|
@ -1,11 +1,16 @@
|
|||
# isort:skip_file
|
||||
|
||||
import copy
|
||||
from pathlib import Path
|
||||
from typing import Dict, List
|
||||
|
||||
import numpy as np
|
||||
import pandas as pd
|
||||
import plotly.express as px
|
||||
import spacy
|
||||
import streamlit as st
|
||||
import typer
|
||||
from wasabi import Printer
|
||||
from recon import Corpus
|
||||
from recon.constants import NONE
|
||||
from recon.corrections import rename_labels
|
||||
|
@ -19,10 +24,6 @@ from recon.insights import (
|
|||
from recon.recognizer import SpacyEntityRecognizer
|
||||
from recon.stats import get_entity_coverage, get_ner_stats
|
||||
from recon.types import Example, HardestExample, PredictionError
|
||||
from wasabi import Printer
|
||||
|
||||
import plotly.express as px
|
||||
import streamlit as st
|
||||
|
||||
|
||||
@st.cache(allow_output_mutation=True)
|
||||
|
|
Загрузка…
Ссылка в новой задаче