sarathchandrakgcp-max commented on issue #37957:
URL: https://github.com/apache/beam/issues/37957#issuecomment-4131779921

   import apache_beam as beam
   
   with beam.Pipeline() as pipeline:
       (pipeline
        | 'Read' >> beam.io.ReadFromText('input.txt')
        | 'Split' >> beam.FlatMap(lambda x: x.split())
        | 'Count' >> beam.combiners.Count.PerElement()
        | 'Write' >> beam.io.WriteToText('output'))


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to