Skip to content

Commit

Permalink
update website
Browse files Browse the repository at this point in the history
  • Loading branch information
OscarKjell committed Dec 27, 2024
1 parent 159b321 commit 4b057f0
Show file tree
Hide file tree
Showing 21 changed files with 661 additions and 517 deletions.
Binary file modified .DS_Store
Binary file not shown.
1,006 changes: 503 additions & 503 deletions .Rhistory

Large diffs are not rendered by default.

21 changes: 18 additions & 3 deletions README.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ evaluate <- FALSE
[![Lifecycle: maturing](https://img.shields.io/badge/lifecycle-maturing-blue.svg)](https://lifecycle.r-lib.org/articles/stages.html#maturing-1)
[![CRAN Downloads](https://cranlogs.r-pkg.org/badges/grand-total/text)](https://CRAN.R-project.org/package=text)
[![codecov](https://codecov.io/gh/oscarkjell/text/branch/master/graph/badge.svg?)](https://app.codecov.io/gh/oscarkjell/text)

<!-- badges: end -->

An R-package for analyzing natural language with transformers from HuggingFace using Natural Language Processing and Machine Learning.
Expand All @@ -43,6 +42,7 @@ The *text*-package has two main objectives:

Please reference our tutorial article when using the package: [The text-package: An R-package for Analyzing and Visualizing Human Language Using Natural Language Processing and Deep Learning](https://osf.io/preprints/psyarxiv/293kt/).


### Short installation guide
Most users simply need to run below installation code.
For those experiencing problems or want more alternatives, please see the [Extended Installation Guide](https://www.r-text.org/articles/huggingface_in_r_extended_installation_guide.html).
Expand Down Expand Up @@ -175,5 +175,20 @@ plot_projection$final_plot
```

<a rel="me" href="https://mastodon.online/@oscarkjell">M</a>
<link rel="me" href="https://mastodon.online/@oscarkjell" M />

### Featured Bluesky Post

```{r, echo = FALSE, results = 'asis'}
cat('
<blockquote class="bluesky-embed" data-bluesky-uri="at://did:plc:tiigom2z6lcqsibxsgjdfea4/app.bsky.feed.post/3lduzt3lob22q" data-bluesky-cid="bafyreifgniodm6xkwh6g5ha4xe2663ohau56fy7nxulnkkhsouxkgq7q3y">
<p lang="en">Version 1.3 of the #r-text package is now available from #CRAN.
This new version makes it easier to apply pre-trained language assessments from the #LBAM-library (r-text.org/articles/LBA...).
#mlsky #PsychSciSky #Statistics #PsychSciSky #StatsSky #NLP<br><br><a href="https://bsky.app/profile/did:plc:tiigom2z6lcqsibxsgjdfea4/post/3lduzt3lob22q?ref_src=embed">[image or embed]</a></p>&mdash; Oscar Kjell (<a href="https://bsky.app/profile/did:plc:tiigom2z6lcqsibxsgjdfea4?ref_src=embed">@oscarkjell.bsky.social</a>) <a href="https://bsky.app/profile/did:plc:tiigom2z6lcqsibxsgjdfea4/post/3lduzt3lob22q?ref_src=embed">Dec 22, 2024 at 9:48</a>
</blockquote>
<script async src="https://embed.bsky.app/static/embed.js" charset="utf-8"></script>
')
```

39 changes: 28 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ maturing](https://img.shields.io/badge/lifecycle-maturing-blue.svg)](https://lif
[![CRAN
Downloads](https://cranlogs.r-pkg.org/badges/grand-total/text)](https://CRAN.R-project.org/package=text)
[![codecov](https://codecov.io/gh/oscarkjell/text/branch/master/graph/badge.svg?)](https://app.codecov.io/gh/oscarkjell/text)

<!-- badges: end -->

An R-package for analyzing natural language with transformers from
Expand Down Expand Up @@ -109,13 +108,13 @@ multilingual BERT comprises *104 different languages*.

*Table 1. Some of the available language models*

| Models | References | Layers | Dimensions | Language |
|:-------------------------------|:---------------------------------------------------------|:-------|:-----------|:-------------------------------------------------------------------------------------|
| ‘bert-base-uncased’ | [Devlin et al. 2019](https://aclanthology.org/N19-1423/) | 12 | 768 | English |
| ‘roberta-base’ | [Liu et al. 2019](https://arxiv.org/abs/1907.11692) | 12 | 768 | English |
| ‘distilbert-base-cased’ | [Sahn et al., 2019](https://arxiv.org/abs/1910.01108) | 6 | 768 | English |
| ‘bert-base-multilingual-cased’ | [Devlin et al. 2019](https://aclanthology.org/N19-1423/) | 12 | 768 | [104 top languages at Wikipedia](https://meta.wikimedia.org/wiki/List_of_Wikipedias) |
| ‘xlm-roberta-large’ | [Liu et al](https://arxiv.org/pdf/1907.11692) | 24 | 1024 | [100 language](https://huggingface.co/docs/transformers/multilingual) |
| Models | References | Layers | Dimensions | Language |
|:---|:---|:---|:---|:---|
| ‘bert-base-uncased’ | [Devlin et al. 2019](https://aclanthology.org/N19-1423/) | 12 | 768 | English |
| ‘roberta-base’ | [Liu et al. 2019](https://arxiv.org/abs/1907.11692) | 12 | 768 | English |
| ‘distilbert-base-cased’ | [Sahn et al., 2019](https://arxiv.org/abs/1910.01108) | 6 | 768 | English |
| ‘bert-base-multilingual-cased’ | [Devlin et al. 2019](https://aclanthology.org/N19-1423/) | 12 | 768 | [104 top languages at Wikipedia](https://meta.wikimedia.org/wiki/List_of_Wikipedias) |
| ‘xlm-roberta-large’ | [Liu et al](https://arxiv.org/pdf/1907.11692) | 24 | 1024 | [100 language](https://huggingface.co/docs/transformers/multilingual) |

See [HuggingFace](https://huggingface.co/models/) for a more
comprehensive list of models.
Expand Down Expand Up @@ -183,7 +182,25 @@ plot_projection <- textProjectionPlot(
plot_projection$final_plot
```

<img src="man/figures/README-DPP_plot-1.png" width="100%" alt="Wordcloud example figure" />
<img src="man/figures/README-DPP_plot-1.png" width="100%" />

### Featured Bluesky Post

<blockquote class="bluesky-embed" data-bluesky-uri="at://did:plc:tiigom2z6lcqsibxsgjdfea4/app.bsky.feed.post/3lduzt3lob22q" data-bluesky-cid="bafyreifgniodm6xkwh6g5ha4xe2663ohau56fy7nxulnkkhsouxkgq7q3y">
<p lang="en">

Version 1.3 of the \#r-text package is now available from \#CRAN.

This new version makes it easier to apply pre-trained language
assessments from the \#LBAM-library (r-text.org/articles/LBA…).

<a rel="me" href="https://mastodon.online/@oscarkjell">M</a>
<link rel="me" href="https://mastodon.online/@oscarkjell" M />
\#mlsky \#PsychSciSky \#Statistics \#PsychSciSky \#StatsSky
\#NLP<br><br><a href="https://bsky.app/profile/did:plc:tiigom2z6lcqsibxsgjdfea4/post/3lduzt3lob22q?ref_src=embed">\[image
or embed\]</a>
</p>
— Oscar Kjell
(<a href="https://bsky.app/profile/did:plc:tiigom2z6lcqsibxsgjdfea4?ref_src=embed">@oscarkjell.bsky.social</a>)
<a href="https://bsky.app/profile/did:plc:tiigom2z6lcqsibxsgjdfea4/post/3lduzt3lob22q?ref_src=embed">Dec
22, 2024 at 9:48</a>
</blockquote>
<script async src="https://embed.bsky.app/static/embed.js" charset="utf-8"></script>
1 change: 1 addition & 0 deletions _pkgdown.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ home:
href: https://stackoverflow.com/

template:
bootstrap: 5
opengraph:
image:
src: man/figures/logo.png
Expand Down
12 changes: 12 additions & 0 deletions blyskytest.Rhtml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<!DOCTYPE html>
<html>
<head><title>Test Bluesky Embed</title></head>
<body>
<iframe
src="https://bsky.app/profile/oscarkjell.bsky.social/post/3lduzt3lob22q"
style="width: 100%; height: 200px; border: none;"
loading="lazy"
title="Bluesky Post"
></iframe>
</body>
</html>
74 changes: 74 additions & 0 deletions blyskytest.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
<!DOCTYPE html>
<html>
<head>
<style type="text/css">
.inline {
background-color: #f7f7f7;
border:solid 1px #B0B0B0;
}
.error {
font-weight: bold;
color: #FF0000;
}
.warning {
font-weight: bold;
}
.message {
font-style: italic;
}
.source, .output, .warning, .error, .message {
padding: 0 1em;
border:solid 1px #F7F7F7;
}
.source {
background-color: #f5f5f5;
}
.left {
text-align: left;
}
.right {
text-align: right;
}
.center {
text-align: center;
}
.hl.num {
color: #AF0F91;
}
.hl.sng {
color: #317ECC;
}
.hl.com {
color: #AD95AF;
font-style: italic;
}
.hl.opt {
color: #000000;
}
.hl.def {
color: #585858;
}
.hl.kwa {
color: #295F94;
font-weight: bold;
}
.hl.kwb {
color: #B05A65;
}
.hl.kwc {
color: #55aa55;
}
.hl.kwd {
color: #BC5A65;
font-weight: bold;
}
</style><title>Test Bluesky Embed</title></head>
<body>
<iframe
src="https://bsky.app/profile/oscarkjell.bsky.social/post/3lduzt3lob22q"
style="width: 100%; height: 200px; border: none;"
loading="lazy"
title="Bluesky Post"
></iframe>
</body>
</html>
Binary file modified inst/.DS_Store
Binary file not shown.
Binary file modified man/.DS_Store
Binary file not shown.
Binary file modified man/figures/README-DPP_plot-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified man/figures/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added man/figures/logo_old.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified pkgdown/favicon/apple-touch-icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added pkgdown/favicon/favicon-96x96.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified pkgdown/favicon/favicon.ico
Binary file not shown.
3 changes: 3 additions & 0 deletions pkgdown/favicon/favicon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
21 changes: 21 additions & 0 deletions pkgdown/favicon/site.webmanifest
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"name": "",
"short_name": "",
"icons": [
{
"src": "/web-app-manifest-192x192.png",
"sizes": "192x192",
"type": "image/png",
"purpose": "maskable"
},
{
"src": "/web-app-manifest-512x512.png",
"sizes": "512x512",
"type": "image/png",
"purpose": "maskable"
}
],
"theme_color": "#ffffff",
"background_color": "#ffffff",
"display": "standalone"
}
Binary file added pkgdown/favicon/web-app-manifest-192x192.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added pkgdown/favicon/web-app-manifest-512x512.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/testthat/.DS_Store
Binary file not shown.
1 change: 1 addition & 0 deletions text.Rproj
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
Version: 1.0
ProjectId: d886f015-88d9-4966-9d93-5a72dd1d94e5

RestoreWorkspace: Default
SaveWorkspace: Default
Expand Down

0 comments on commit 4b057f0

Please sign in to comment.