SocialVec
The SocialVec package provides pre-trained embeddings for approximately 200,000 popular Twitter accounts. SocialVec is a framework for learning social entity embeddings, derived from a large-scale Twitter dataset encompassing 1.3 million users and the accounts they follow.
What are SocialVec Embeddings?
SocialVec embeddings are low-dimensional vector representations of popular Twitter accounts. These embeddings are trained on co-occurrence patterns observed in the Twitter social network. Accounts frequently co-followed by users are considered socially related, making these embeddings similar to word embeddings where words in similar contexts have similar vector representations.
Package Features
This package includes the following features:
Access to pre-trained SocialVec embeddings:
Pre-trained embeddings for approximately 200,000 popular Twitter accounts.
Embeddings are 100-dimensional, trained using the Skip-gram model with negative sampling (SGNS).
Entity similarity computation:
Entity analogy exploration:
Potential Applications
The SocialVec package can be used for a wide range of tasks, including:
Recommendation systems: Recommending Twitter accounts or other content based on user social affinity captured by the embeddings.
Social analysis: Investigating social trends and relationships between entities on Twitter.
Bias detection: Identifying potential biases in social media content or user behavior based on social context.
Inferring personal traits: Predicting user characteristics like age, gender, or political leaning based on their social connections on Twitter.
Examples
Here are some practical examples of what you can do with SocialVec:
Finding similar entities: Retrieve universities similar to UC Berkeley based on the cosine similarity of their SocialVec embeddings.
Recommending Twitter accounts: Suggest accounts similar to those followed by a specific user, leveraging social context captured in the embeddings.
Assessing political leaning: Determine the political bias of news sources by comparing their similarity to embeddings of politically polarized accounts (e.g., accounts of prominent politicians).
Exploring entity analogies: Complete analogies like “X-Factor : Simon Cowell :: The Voice : ?” using vector arithmetic on SocialVec embeddings.
Advantages of SocialVec
Captures social world knowledge: Unlike embeddings derived from factual knowledge bases like Wikipedia or Wikidata, SocialVec embeddings reflect relationships between entities based on social media interactions.
Wider coverage: SocialVec represents a broader range of entities, as many Twitter accounts do not have corresponding Wikipedia pages.
Notes
This README covers the pre-trained embeddings provided by the package. Specific implementation details and additional functionality will be defined as part of the package’s development.
Credits
This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.
Release files / socialvec-0.1.7.1.tar.gz
How to use checksums
5349fa37c6b2bd5d4512d1bdbcebad856030116fd2e619d60294fb69de906d86How to use checksums
94fa9ae5c92a3d0d616ee5e1f723621e53c7ee4649d2e79ad977a92e1ad415c8What is trusted publishing?
twine/5.1.1 CPython/3.10.11