Update model info
Browse files
README.md
CHANGED
@@ -1,3 +1,160 @@
|
|
1 |
-
---
|
2 |
-
license: mit
|
3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
license: mit
|
3 |
+
tags:
|
4 |
+
- code
|
5 |
+
- link
|
6 |
+
- urlshortener
|
7 |
+
---
|
8 |
+
|
9 |
+
# Model Card for AI-URL-Shortener
|
10 |
+
|
11 |
+
<!-- Provide a quick summary of what the model is/does. -->
|
12 |
+
Model Name: AI-URL-Shortener
|
13 |
+
|
14 |
+
## Model Details
|
15 |
+
|
16 |
+
### Model Description
|
17 |
+
|
18 |
+
<!-- Provide a longer summary of what this model is. -->
|
19 |
+
AI-URL-Shortener is a machine learning model designed to automate the process of creating meaningful, human-readable URL shorteners. This model analyzes the original link provided by the user, generates a preview of the content, and suggests multiple unique and relevant suffix options for the shortened URL.
|
20 |
+
The model is built to integrate seamlessly with URL shortener platforms, like [LinksGPT](https://www.linksgpt.com/), and aims to enhance user experience by providing smart suffix recommendations that align with the content of the original link.
|
21 |
+
|
22 |
+
Features:
|
23 |
+
- Original URL Analysis: Extract metadata such as title, description, and keywords.
|
24 |
+
- Dynamic Recommendations: Create suffixes based on the extracted metadata, user input, or custom branding.
|
25 |
+
- Intelligent Validation: Ensure generated suffixes are unique and valid.
|
26 |
+
|
27 |
+
Metadata:
|
28 |
+
- **Developed by:** LinksGPT Team
|
29 |
+
- **Model type:** LLM
|
30 |
+
- **License:** MIT
|
31 |
+
|
32 |
+
### Model Sources
|
33 |
+
|
34 |
+
<!-- Provide the basic links for the model. -->
|
35 |
+
|
36 |
+
- **Repository:** [More Information Needed]
|
37 |
+
- **Paper [optional]:** [More Information Needed]
|
38 |
+
- **Demo [optional]:** [More Information Needed]
|
39 |
+
|
40 |
+
## Uses
|
41 |
+
|
42 |
+
<!-- Address questions around how the model is intended to be used, including the foreseeable users of the model and those affected by the model. -->
|
43 |
+
Intended Users:
|
44 |
+
- URL shortening platforms.
|
45 |
+
- Marketers looking for brand-aligned short links.
|
46 |
+
- Developers integrating custom URL shorteners into applications.
|
47 |
+
|
48 |
+
### Direct Use
|
49 |
+
|
50 |
+
<!-- This section is for the model use without fine-tuning or plugging into a larger ecosystem/app. -->
|
51 |
+
|
52 |
+
URL Shortening: Automatically generate short and descriptive URLs for social sharing or branding.
|
53 |
+
Preview Links: Offer a content preview to help users select relevant suffixes for better engagement.
|
54 |
+
Custom URL Recommendations: Provide personalized suggestions based on the content and user preferences.
|
55 |
+
|
56 |
+
## Bias, Risks, and Limitations
|
57 |
+
|
58 |
+
<!-- This section is meant to convey both technical and sociotechnical limitations. -->
|
59 |
+
|
60 |
+
Limitations:
|
61 |
+
- Content Preview Accuracy: The preview is dependent on the metadata availability of the original link.
|
62 |
+
- Suffix Creativity: The model generates suffixes within the constraints of URL standards, which may limit overly creative outputs.
|
63 |
+
- Real-Time Validation: Requires integration with a live URL shortener backend for uniqueness checks.
|
64 |
+
|
65 |
+
### Recommendations
|
66 |
+
|
67 |
+
<!-- This section is meant to convey recommendations with respect to the bias, risk, and technical limitations. -->
|
68 |
+
|
69 |
+
Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model. More information needed for further recommendations.
|
70 |
+
|
71 |
+
## How to Get Started with the Model
|
72 |
+
|
73 |
+
Use the code below to get started with the model.
|
74 |
+
|
75 |
+
How to Use:
|
76 |
+
- Input the original URL into the model.
|
77 |
+
- Receive a content preview and a list of recommended short-link suffixes.
|
78 |
+
- Select or customize a suffix based on the recommendations.
|
79 |
+
- Use the selected suffix to generate the final shortened URL via the backend system.
|
80 |
+
|
81 |
+
Example code snippet:
|
82 |
+
```python
|
83 |
+
from transformers import pipeline
|
84 |
+
|
85 |
+
# Load model
|
86 |
+
model = pipeline("text-generation", model="huggingface/ai-url-shortener")
|
87 |
+
|
88 |
+
# Input original URL
|
89 |
+
original_url = "https://example.com/interesting-article"
|
90 |
+
|
91 |
+
# Generate suffix recommendations
|
92 |
+
results = model(f"Generate suffixes for: {original_url}")
|
93 |
+
print(results)
|
94 |
+
```
|
95 |
+
|
96 |
+
## Training Details
|
97 |
+
|
98 |
+
### Training Data
|
99 |
+
|
100 |
+
<!-- This should link to a Dataset Card, perhaps with a short stub of information on what the training data is all about as well as documentation related to data pre-processing or additional filtering. -->
|
101 |
+
The model was trained on a large dataset of URLs, metadata, and user-selected short link patterns. The dataset includes a mix of general, e-commerce, social media, and enterprise links, ensuring versatility across industries.
|
102 |
+
|
103 |
+
## Evaluation
|
104 |
+
|
105 |
+
<!-- This section describes the evaluation protocols and provides the results. -->
|
106 |
+
|
107 |
+
### Testing Data, Factors & Metrics
|
108 |
+
|
109 |
+
#### Testing Data
|
110 |
+
|
111 |
+
<!-- This should link to a Dataset Card if possible. -->
|
112 |
+
|
113 |
+
[More Information Needed]
|
114 |
+
|
115 |
+
#### Factors
|
116 |
+
|
117 |
+
<!-- These are the things the evaluation is disaggregating by, e.g., subpopulations or domains. -->
|
118 |
+
|
119 |
+
[More Information Needed]
|
120 |
+
|
121 |
+
#### Metrics
|
122 |
+
|
123 |
+
<!-- These are the evaluation metrics being used, ideally with a description of why. -->
|
124 |
+
The model is evaluated on:
|
125 |
+
- Suffix Relevance: How well the generated suffixes align with the link content.
|
126 |
+
- Uniqueness: Ensuring no duplicate or conflicting suffixes are generated.
|
127 |
+
- User Engagement: Improvement in click-through rates (CTR) for suggested short links.
|
128 |
+
|
129 |
+
### Results
|
130 |
+
|
131 |
+
[More Information Needed]
|
132 |
+
|
133 |
+
#### Summary
|
134 |
+
|
135 |
+
## Technical Specifications
|
136 |
+
|
137 |
+
### Model Architecture and Objective
|
138 |
+
|
139 |
+
The model leverages a combination of:
|
140 |
+
- Natural Language Processing (NLP): To understand and extract relevant metadata from the original link.
|
141 |
+
- Transformer Models: For generating meaningful and creative suffix recommendations.
|
142 |
+
- Regex and Validation Layers: To ensure all generated suffixes conform to URL standards and avoid duplication.
|
143 |
+
|
144 |
+
### Compute Infrastructure
|
145 |
+
|
146 |
+
#### Software
|
147 |
+
|
148 |
+
[More Information Needed]
|
149 |
+
|
150 |
+
## More About LinksGPT
|
151 |
+
|
152 |
+
LinksGPT is a professional link management platform for custom short urls, brand building and conversion optimization. It offers intelligent URL shortening and expansion, custom domains, team roles, customizable QR codes, tracking and AI-based in-depth analytics, deep linking, openAPI and enhanced link security. Powered by AI, it provides intelligent insights and recommendations based on user behavior and click patterns, support data-driven brand strategies and marketing decisions.
|
153 |
+
|
154 |
+
## Model Card Authors
|
155 |
+
|
156 |
+
LinksGPT
|
157 |
+
|
158 |
+
## Model Card Contact
|
159 |
+
|
160 |
+
service@linksgpt.com
|