streams:
    - name: getting-started
      documents:
        - ${oc.env:HOME}/wikipedia/v0/documents/*.gz

      output:
        path: ${oc.env:HOME}/wikipedia/example0/documents
        max_size_in_bytes: 1_000_000_000
      attributes:
        - exp
        - bff_duplicate_paragraph_spans
      filter:
        include:
          - "$.attributes[?(@.exp__whitespace_tokenizer_with_paragraphs_v1__document[0][2] < 100000)]"
        exclude:
          - "$.attributes[?(@.exp__whitespace_tokenizer_with_paragraphs_v1__document[0][2] < 50)]"
          - "$.attributes[?(@.exp__ft_lang_id_en_paragraph_with_doc_score_v2__doc_en[0][2] <= 0.5)]"
          - "$@.attributes[?(@.bff_duplicate_paragraph_spans && @.bff_duplicate_paragraph_spans[0] && @.bff_duplicate_paragraph_spans[0][2] >= 1.0)]"

      span_replacement:
        - span: "$.attributes.exp__cld2_en_paragraph_with_doc_score_v2__not_en"
          min_score: 0.1
          replacement: ''

processes: 1
