:mod:`sourced.ml.core.models.topics` ==================================== .. py:module:: sourced.ml.core.models.topics Module Contents --------------- .. py:class:: Topics Bases::class:`modelforge.Model` .. attribute:: NAME :annotation: = topics .. attribute:: VENDOR :annotation: = source{d} .. attribute:: DESCRIPTION :annotation: = Model that is used to identify topics of source code repositories. .. attribute:: LICENSE .. attribute:: tokens .. attribute:: topics May be None if no topics are labeled. .. attribute:: matrix Rows: tokens Columns: topics .. method:: construct(self, tokens: list, topics: Union[list, None], matrix) .. method:: dump(self) .. method:: label_topics(self, labels)