the-algorithm/src/thrift/com/twitter/simclusters_v2/tweet_similarity.thrift
twitter-team ef4c5eb65e Twitter Recommendation Algorithm
Please note we have force-pushed a new initial commit in order to remove some publicly-available Twitter user information. Note that this process may be required in the future.
2023-03-31 17:36:31 -05:00

17 lines
667 B
Thrift

namespace java com.twitter.simclusters_v2.thriftjava
namespace py gen.twitter.simclusters_v2.tweet_similarity
#@namespace scala com.twitter.simclusters_v2.thriftscala
#@namespace strato com.twitter.simclusters_v2
struct FeaturedTweet {
1: required i64 tweetId(personalDataType = 'TweetId')
# timestamp when the user engaged or impressed the tweet
2: required i64 timestamp(personalDataType = 'PrivateTimestamp')
}(persisted = 'true', hasPersonalData = 'true')
struct LabelledTweetPairs {
1: required FeaturedTweet queryFeaturedTweet
2: required FeaturedTweet candidateFeaturedTweet
3: required bool label
}(persisted = 'true', hasPersonalData = 'true')