(doc: Doc, method: str, **kwargs)
Extract keyterms from a document using one of several different methods.
    For full detail, see the underlying functions listed below.

    See Also:
        - :func:`textacy.extract.keyterms.scake()`
        - :func:`textacy.extract.keyterms.sgrank()`
        - :func:`textacy.extract.keyterms.textrank()`
        - :func:`textacy.extract.keyterms.yake()`
Extract keyterms from a document using one of several different methods.
    For full detail, see the underlying functions listed below.
Extract keyterms from a document using one of several different methods . For full detail see the underlying functions listed below .
def extract_keyterms(doc: Doc, method: str, **kwargs):
    """
    Extract keyterms from a document using one of several different methods.
    For full detail, see the underlying functions listed below.

    See Also:
        - :func:`textacy.extract.keyterms.scake()`
        - :func:`textacy.extract.keyterms.sgrank()`
        - :func:`textacy.extract.keyterms.textrank()`
        - :func:`textacy.extract.keyterms.yake()`
    """
    if method == "scake":
        return keyterms.scake(doc, **kwargs)
    elif method == "sgrank":
        return keyterms.sgrank(doc, **kwargs)
    elif method == "textrank":
        return keyterms.textrank(doc, **kwargs)
    elif method == "yake":
        return keyterms.yake(doc, **kwargs)
    else:
        raise ValueError(
            errors.value_invalid_msg(
                "method", method, {"scake", "sgrank", "textrank", "yake"}
            )
        )
def extract_keyterms ( doc : Doc , method : str , * * kwargs ) : if method == "scake" : return keyterms . scake ( doc , * * kwargs ) elif method == "sgrank" : return keyterms . sgrank ( doc , * * kwargs ) elif method == "textrank" : return keyterms . textrank ( doc , * * kwargs ) elif method == "yake" : return keyterms . yake ( doc , * * kwargs ) else : raise ValueError ( errors . value_invalid_msg ( "method" , method , { "scake" , "sgrank" , "textrank" , "yake" } ) )