mirror of
https://github.com/explosion/spaCy.git
synced 2025-05-29 10:13:19 +03:00
remove to find-function
This commit is contained in:
parent
7c3f217a2e
commit
f443dd10b8
|
@ -14,7 +14,7 @@ from .debug_diff import debug_diff # noqa: F401
|
||||||
from .debug_model import debug_model # noqa: F401
|
from .debug_model import debug_model # noqa: F401
|
||||||
from .download import download # noqa: F401
|
from .download import download # noqa: F401
|
||||||
from .evaluate import evaluate # noqa: F401
|
from .evaluate import evaluate # noqa: F401
|
||||||
from .find_loc import find_loc # noqa: F401
|
from .find_function import find_function # noqa: F401
|
||||||
from .find_threshold import find_threshold # noqa: F401
|
from .find_threshold import find_threshold # noqa: F401
|
||||||
from .info import info # noqa: F401
|
from .info import info # noqa: F401
|
||||||
from .init_config import fill_config, init_config # noqa: F401
|
from .init_config import fill_config, init_config # noqa: F401
|
||||||
|
|
|
@ -5,8 +5,8 @@ from ..util import registry
|
||||||
from ._util import Arg, Opt, app
|
from ._util import Arg, Opt, app
|
||||||
|
|
||||||
|
|
||||||
@app.command("find-loc")
|
@app.command("find-function")
|
||||||
def find_loc_cli(
|
def find_function_cli(
|
||||||
# fmt: off
|
# fmt: off
|
||||||
func_name: str = Arg(..., help="Name of the registered function."),
|
func_name: str = Arg(..., help="Name of the registered function."),
|
||||||
registry_name: str = Opt(None, help="Name of the catalogue registry."),
|
registry_name: str = Opt(None, help="Name of the catalogue registry."),
|
||||||
|
@ -25,10 +25,10 @@ def find_loc_cli(
|
||||||
registry_name = name
|
registry_name = name
|
||||||
break
|
break
|
||||||
|
|
||||||
find_loc(func_name, registry_name)
|
find_function(func_name, registry_name)
|
||||||
|
|
||||||
|
|
||||||
def find_loc(func_name: str, registry_name: str) -> None:
|
def find_function(func_name: str, registry_name: str) -> None:
|
||||||
try:
|
try:
|
||||||
registry_desc = registry.find(registry_name, func_name)
|
registry_desc = registry.find(registry_name, func_name)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user