(
        self,
        *,
        category: Optional[str | Set[str]] = None,
        wiki_link: Optional[str | Set[str]] = None,
        min_len: Optional[int] = None,
        limit: Optional[int] = None,
    )
Iterate over wiki pages in this dataset, optionally filtering by a variety
        of metadata and/or text length, and yield text + metadata pairs,
        in order of appearance in the db dump file.

        Args:
            category: Filter wiki pages by the categories to which they've been assigned.
                For multiple values (Set[str]), ANY rather than ALL of the values
                must be found among a given page's categories.
            wiki_link: Filter wiki pages by the other wiki pages to which they've been linked.
                For multiple values (Set[str]), ANY rather than ALL of the values
                must be found among a given page's wiki links.
            min_len: Filter wiki pages by the length (# characters) of their text content.
            limit: Yield no more than ``limit`` wiki pages that match all specified filters.

        Yields:
            Text of the next wiki page in dataset passing all filters,
            and its corresponding metadata.

        Raises:
            ValueError: If any filtering options are invalid.
Iterate over wiki pages in this dataset, optionally filtering by a variety
        of metadata and/or text length, and yield text + metadata pairs,
        in order of appearance in the db dump file.
Iterate over wiki pages in this dataset optionally filtering by a variety of metadata and / or text length and yield text + metadata pairs in order of appearance in the db dump file .
def records(
        self,
        *,
        category: Optional[str | Set[str]] = None,
        wiki_link: Optional[str | Set[str]] = None,
        min_len: Optional[int] = None,
        limit: Optional[int] = None,
    ) -> Iterable[types.Record]:
        """
        Iterate over wiki pages in this dataset, optionally filtering by a variety
        of metadata and/or text length, and yield text + metadata pairs,
        in order of appearance in the db dump file.

        Args:
            category: Filter wiki pages by the categories to which they've been assigned.
                For multiple values (Set[str]), ANY rather than ALL of the values
                must be found among a given page's categories.
            wiki_link: Filter wiki pages by the other wiki pages to which they've been linked.
                For multiple values (Set[str]), ANY rather than ALL of the values
                must be found among a given page's wiki links.
            min_len: Filter wiki pages by the length (# characters) of their text content.
            limit: Yield no more than ``limit`` wiki pages that match all specified filters.

        Yields:
            Text of the next wiki page in dataset passing all filters,
            and its corresponding metadata.

        Raises:
            ValueError: If any filtering options are invalid.
        """
        filters = self._get_filters(category, wiki_link, min_len)
        for record in itertools.islice(self._filtered_iter(filters), limit):
            yield types.Record(text=record.pop("text"), meta=record)
def records ( self , * , category : Optional [ str | Set [ str ] ] = None , wiki_link : Optional [ str | Set [ str ] ] = None , min_len : Optional [ int ] = None , limit : Optional [ int ] = None , ) -> Iterable [ types . Record ] : filters = self . _get_filters ( category , wiki_link , min_len ) for record in itertools . islice ( self . _filtered_iter ( filters ) , limit ) : yield types . Record ( text = record . pop ( "text" ) , meta = record )