Unverified Commit b0abe5df authored by narugo1992's avatar narugo1992 Committed by GitHub
Browse files

Merge pull request #49 from deepghs/dev/tagging

dev(narugo): optimize tag check system
parents 4e86e054 19400195
Loading
Loading
Loading
Loading
+29 −0
Original line number Diff line number Diff line
@@ -6,6 +6,35 @@ imgutils.tagging.character
.. automodule:: imgutils.tagging.character


CHAR_WHITELIST
------------------------------

.. autodata:: CHAR_WHITELIST



CHAR_SUFFIXES
------------------------------

.. autodata:: CHAR_SUFFIXES



CHAR_PREFIXES
------------------------------

.. autodata:: CHAR_PREFIXES



CharacterTagPool
------------------------------

.. autoclass:: CharacterTagPool
    :members: __init__, is_basic_character_tag, drop_basic_character_tags



is_basic_character_tag
-------------------------------

+1 −0
Original line number Diff line number Diff line
@@ -17,4 +17,5 @@ imgutils.tagging
    blacklist
    character
    order
    match
+29 −0
Original line number Diff line number Diff line
imgutils.tagging.match
====================================

.. currentmodule:: imgutils.tagging.match

.. automodule:: imgutils.tagging.match


tag_match_suffix
-------------------------------------------------

.. autofunction:: tag_match_suffix



tag_match_prefix
-------------------------------------------------

.. autofunction:: tag_match_prefix



tag_match_full
-------------------------------------------------

.. autofunction:: tag_match_full


+0 −7
Original line number Diff line number Diff line
@@ -13,10 +13,3 @@ drop_overlap_tags


drop_overlaps_for_dict
----------------------------------

.. autofunction:: drop_overlaps_for_dict


+2 −1
Original line number Diff line number Diff line
@@ -12,7 +12,8 @@ from .blacklist import is_blacklisted, drop_blacklisted_tags
from .character import is_basic_character_tag, drop_basic_character_tags
from .deepdanbooru import get_deepdanbooru_tags
from .format import tags_to_text
from .match import tag_match_suffix, tag_match_prefix, tag_match_full
from .mldanbooru import get_mldanbooru_tags
from .order import sort_tags
from .overlap import drop_overlap_tags, drop_overlaps_for_dict
from .overlap import drop_overlap_tags
from .wd14 import get_wd14_tags
Loading