class_docstr: Base class for project-specific Wikimedia datasets. See:
  
  * :class:`Wikipedia`
  * :class:`Wikinews`
docstr: Iterate over wiki pages in this dataset, optionally filtering by a variety
  of metadata and/or text length, and yield texts only,
  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.
  
  Raises:
      ValueError: If any filtering options are invalid.
docstr_tok: ["Iterate","over","wiki","pages","in","this","dataset",",","optionally","filtering","by","a","variety","of","metadata","and\/or","text","length",",","and","yield","texts","only",",","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",".","Raises",":","ValueError",":","If","any","filtering","options","are","invalid","."]
code: def texts(
      self,
      *,
      category: Optional[str | set[str]] = None,
      wiki_link: Optional[str | set[str]] = None,
      min_len: Optional[int] = None,
      limit: Optional[int] = None,
  ) -> Iterable[str]:
      """
      Iterate over wiki pages in this dataset, optionally filtering by a variety
      of metadata and/or text length, and yield texts only,
      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.
  
      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 record["text"]
  
imports: from __future__ import annotations
  import datetime
  import itertools
  import logging
  import os
  import re
  import urllib.parse
  from typing import Iterable, Optional
  import requests
  from cytoolz import itertoolz
  from ..None import constants
  from ..None import io
  from ..None import types, utils
  from .base import Dataset
label_desc: Use image node_id 8 for calling the Wikimedia obj's underlying member method code with example usage: obj.texts() without return types