예제 #1
0
    import pytextrank

    class_list = [
        "BaseTextRankFactory",
        "BaseTextRank",
        "PositionRankFactory",
        "PositionRank",
        "BiasedTextRankFactory",
        "BiasedTextRank",
        "Lemma",
        "Phrase",
        "Sentence",
        "VectorElem",
        ]

    pkg_doc = pyfixdoc.PackageDoc(
        "pytextrank",
        "https://github.com/DerwenAI/pytextrank/blob/main",
        class_list,
        )

    # NB: uncomment to analyze/troubleshoot the results of `inspect` 
    #pkg_doc.show_all_elements(); sys.exit(0)

    # build the apidocs markdown
    pkg_doc.build()

    # output the apidocs markdown
    ref_md_file = sys.argv[1]
    pkg_doc.write_markdown(ref_md_file)
예제 #2
0
    # customize the following, per use case
    import kglab

    class_list = [
        "KnowledgeGraph",
        "Subgraph",
        "SubgraphMatrix",
        "SubgraphTensor",
        "Measure",
        "Simplex0",
        "Simplex1",
        "PSLModel",
    ]

    pkg_doc = pyfixdoc.PackageDoc(
        "kglab",
        "https://github.com/DerwenAI/kglab/blob/main",
        class_list,
    )

    # NB: uncomment to analyze/troubleshoot the results of `inspect`
    #pkg_doc.show_all_elements(); sys.exit(0)

    # build the apidocs markdown
    pkg_doc.build()

    # output the apidocs markdown
    ref_md_file = sys.argv[1]
    pkg_doc.write_markdown(ref_md_file)