bert.ner.manual with pattern matcher

Hi everyone,

Has any one tried to use pattern matcher with bert.ner.manual?

Thanks in advance

Are you referring to this recipe? It's the one linked on the docs. If so, the signature of the recipe looks like this:

@prodigy.recipe(
    "bert.ner.manual",
    # fmt: off
    dataset=("Dataset to save annotations to", "positional", None, str),
    source=("Data to annotate (file path or '-' to read from standard input)", "positional", None, str),
    loader=("Loader (guessed from file extension if not set)", "option", "lo", str),
    label=("Comma-separated label(s) to annotate or text file with one label per line", "option", "l", get_labels),
    tokenizer_vocab=("Tokenizer vocab file", "option", "tv", str),
    lowercase=("Set lowercase=True for tokenizer", "flag", "LC", bool),
    hide_special=("Hide SEP and CLS tokens visually", "flag", "HS", bool),
    hide_wp_prefix=("Hide wordpieces prefix like ##", "flag", "HW", bool)
    # fmt: on
)

I don't see patterns mentioned here, which makes me believe that they are not supported for that recipe.

That said, you're free to take the recipe and customise it as you see fit! It's meant to be an example that is adapted by the community :slightly_smiling_face: