concept stream in category deep learning

appears as: streams, stream
Deep Learning for Search

This is an excerpt from Manning's book Deep Learning for Search.

Let’s first look at the task computers can do well already: extracting and storing text fragments (also known as terms) from streams of text. You can think of this process, called text analysis, as breaking down the text of a book into all of its constituent words. Imagine having a tape on which the contents of a book are written in a stream, and a machine (the text analysis algorithm) into which you insert such tape as input. You receive many pieces of such tape as output, and each of those output pieces contains a word or a sentence or a noun phrase (for example, “artificial intelligence”); you may realize that some of the words written on the input tape have been eaten by the machine and not outputted in any form.

First, let’s define a stream of data coming from Twitter.

Listing 9.5. Defining a stream of Twitter data with Flink
final StreamExecutionEnvironment env =
     StreamExecutionEnvironment.getExecutionEnvironment();                #1

Properties props = new Properties();
props.load(StreamingTweetIngestAndLearnApp.class.getResourceAsStream(
    "/twitter.properties"));                                              #2
TwitterSource twitterSource = new TwitterSource(props);                   #3

String[] tags = {"neural search", "natural language processing", "lucene",
    "deep learning", "word embeddings", "manning"};                       #4
twitterSource.setCustomEndpointInitializer(new FilterEndpoint(tags));     #5

DataStream<Tweet> twitterStream = env.addSource(twitterSource)            #6
    .flatMap(new TweetJsonConverter());                                   #7