the-algorithm/src/java/com/twitter/search/common/relevance/features/TweetSignatureUtil.java
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

16 lines
514 B
Java

package com.twitter.search.common.relevance.features;
public final class TweetSignatureUtil {
private TweetSignatureUtil() {
}
/** Converts the signature in args[0] to a TweetIntegerShingleSignature. */
public static void main(String[] args) throws Exception {
if (args.length < 1) {
throw new RuntimeException("Please provide signature value.");
}
int signature = Integer.parseInt(args[0]);
System.out.println(TweetIntegerShingleSignature.deserialize(signature).toString());
}
}