dejanseo commited on
Commit
537c8f0
1 Parent(s): efd5851

Create README.md

Browse files
Files changed (1) hide show
  1. README.md +98 -0
README.md ADDED
@@ -0,0 +1,98 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ language: en
3
+ license: bigscience-bloom-rail-1.0
4
+ datasets:
5
+ - bookcorpus
6
+ - wikipedia
7
+ pipeline_tag: token-classification
8
+ ---
9
+
10
+ # LinkBERT: Fine-tuned BERT for Natural Link Prediction
11
+
12
+ LinkBERT is an advanced fine-tuned version of the [bert-large-cased](https://huggingface.co/google-bert/bert-large-cased) model developed by [Dejan Marketing](https://dejanmarketing.com/). The model is designed to predict natural link placement within web content. This binary classification model excels in identifying distinct token ranges that web authors are likely to choose as anchor text for links. By analyzing never-before-seen texts, LinkBERT can predict areas within the content where links might naturally occur, effectively simulating web author behavior in link creation.
13
+
14
+ ## Applications of LinkBERT
15
+
16
+ LinkBERT's applications are vast and diverse, tailored to enhance both the efficiency and quality of web content creation and analysis:
17
+
18
+ - **Anchor Text Suggestion:** Acts as a mechanism during internal link optimization, suggesting potential anchor texts to web authors.
19
+ - **Evaluation of Existing Links:** Assesses the naturalness of link placements within existing content, aiding in the refinement of web pages.
20
+ - **Link Placement Guide:** Offers guidance to link builders by suggesting optimal placement for links within content.
21
+ - **Anchor Text Idea Generator:** Provides creative anchor text suggestions to enrich content and improve SEO strategies.
22
+ - **Spam and Inorganic SEO Detection:** Helps identify unnatural link patterns, contributing to the detection of spam and inorganic SEO tactics.
23
+
24
+ ## Training and Performance
25
+
26
+ LinkBERT was fine-tuned on a dataset of organic web content and editorial links. The training involved preprocessing web content, annotating links with temporary markup for clear distinction, and employing a specialized tokenization process to prepare the data for model training. In adition to commonly available data sources such as Wikipedia, additional training data was also sourced from:
27
+
28
+ - [Owayo USA](https://www.owayo.com/)
29
+ - [Owayo Germany](https://www.owayo.de/)
30
+ - [Compare the Market](https://www.comparethemarket.com.au/)
31
+ - [Leonardo AI](https://leonardo.ai/)
32
+ - [The Wests Group](https://mywests.com.au/)
33
+ - [Zendesk](https://www.zendesk.com/)
34
+ - [Australia Post](https://auspost.com.au/)
35
+ - [Probe Group](https://www.probecx.com/)
36
+ - [Monarch Institute](https://www.monarch.edu.au/)
37
+ - And many others...
38
+
39
+ ### Training Highlights:
40
+
41
+ - **Dataset:** Custom organic web content with editorial links.
42
+ - **Preprocessing:** Links annotated with `[START_LINK]` and `[END_LINK]` markup.
43
+ - **Tokenization:** Utilized input_ids, token_type_ids, attention_mask, and labels for model training, with a unique labeling system to differentiate between link/anchor text and plain text.
44
+
45
+ ### Technical Specifications:
46
+
47
+ - **Batch Size:** 10, with class weights adjusted to address class imbalance between link and plain text.
48
+ - **Optimizer:** AdamW with a learning rate of 5e-5.
49
+ - **Epochs:** 5, incorporating gradient accumulation and warmup steps to optimize training outcomes.
50
+ - **Hardware:** 1 x RTX4090 24GB VRAM
51
+ - **Duration:** 32 hours
52
+
53
+ ## Utilization and Integration
54
+
55
+ LinkBERT is positioned as a powerful tool for content creators, SEO specialists, and webmasters, offering unparalleled support in optimizing web content for both user engagement and search engine recognition. Its predictive capabilities not only streamline the content creation process but also offer insights into the natural integration of links, enhancing the overall quality and relevance of web content.
56
+
57
+ ## Accessibility
58
+
59
+ LinkBERT leverages the robust architecture of bert-large-cased, enhancing it with capabilities specifically tailored for web content analysis. This model represents a significant advancement in the understanding and generation of web content, providing a nuanced approach to natural link prediction and anchor text suggestion.
60
+
61
+ ---
62
+
63
+ # BERT large model (cased)
64
+
65
+ Pretrained model on English language using a masked language modeling (MLM) objective. It was introduced in
66
+ [this paper](https://arxiv.org/abs/1810.04805) and first released in
67
+ [this repository](https://github.com/google-research/bert). This model is cased: it makes a difference
68
+ between english and English.
69
+
70
+ Disclaimer: The team releasing BERT did not write a model card for this model so this model card has been written by
71
+ the Hugging Face team.
72
+
73
+ ## Model description
74
+
75
+ BERT is a transformers model pretrained on a large corpus of English data in a self-supervised fashion. This means it
76
+ was pretrained on the raw texts only, with no humans labelling them in any way (which is why it can use lots of
77
+ publicly available data) with an automatic process to generate inputs and labels from those texts. More precisely, it
78
+ was pretrained with two objectives:
79
+
80
+ - Masked language modeling (MLM): taking a sentence, the model randomly masks 15% of the words in the input then run
81
+ the entire masked sentence through the model and has to predict the masked words. This is different from traditional
82
+ recurrent neural networks (RNNs) that usually see the words one after the other, or from autoregressive models like
83
+ GPT which internally mask the future tokens. It allows the model to learn a bidirectional representation of the
84
+ sentence.
85
+ - Next sentence prediction (NSP): the models concatenates two masked sentences as inputs during pretraining. Sometimes
86
+ they correspond to sentences that were next to each other in the original text, sometimes not. The model then has to
87
+ predict if the two sentences were following each other or not.
88
+
89
+ This way, the model learns an inner representation of the English language that can then be used to extract features
90
+ useful for downstream tasks: if you have a dataset of labeled sentences for instance, you can train a standard
91
+ classifier using the features produced by the BERT model as inputs.
92
+
93
+ This model has the following configuration:
94
+
95
+ - 24-layer
96
+ - 1024 hidden dimension
97
+ - 16 attention heads
98
+ - 336M parameters.