This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import copy | |
import json | |
from typing import Dict, List, Optional, Tuple | |
import spacy | |
import srsly | |
from spacy.language import Language | |
from spacy.tokens import Doc, Span | |
from spacy.util import filter_spans | |
from wasabi import msg |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from pathlib import Path | |
import srsly | |
import spacy | |
import typer | |
from util import Snippet, Document | |
from collections import defaultdict | |
def main(snippets_path: Path, articles_path: Path) -> None: | |
""" |