oscarkjell.bsky.social
Assessing Psychological Constructs Using NLP and Machine Learning
Developer of R-packages: #r-text, #r-topics and #r-talk
Precision Mental health
Well-being and Harmony Research
Based at Lund University and Stony Brook University
44 posts
2,622 followers
278 following
Prolific Poster
Conversation Starter
comment in response to
post
1. which text version are you using? have you installed the latest version from CRAN 1.5?
2. when you try this, can you please first always remove the embeddings that are automatically saved in your working directory (called something like textPredict_694....RDS).
comment in response to
post
i'm not able to reproduce this (some colleagues have tried too). if you run it in a standard R script, do u get some more info? (every time you try, pls use different texts input so u make a new embeddings every time). im also happy to schedule an online meeting next week to try n sort this out :)
comment in response to
post
if that does not work, can you please try running this:
res <- textAssess(
model_info = "valence_facebook_mxbai23_eijsbroek2024",
texts = "test one")
comment in response to
post
in the console it says you are loading some embedings called textPredict_..... These are created automatically when running textPredict() with a new text. Now these embeddings are named differently; so try setting dim_name = FALSE within textPredict call.
comment in response to
post
Thanks for your patience. Do u already have a word embeddings for this text in your working directory?
Can u pls 1) try with a different text, or 2) delete any word embeddings created from textPredict() in ur working directory.
(i should add improve the warning!).
comment in response to
post
yes, thanks for letting me know. i've been thinking about this too. there are a few functions that i would prefer not having in both packaged to simplify maintenance. but, i will look into a solution so that the text-package installation does not require rJava. ill keep you posted.
comment in response to
post
have you tried to first downloading java from www.java.com/en/download/.
comment in response to
post
hmm what is the error? Have you tried installing rJava first?
here you can see more details about installing the text package (r-text.org/articles/hug...)
im happy to get feedback if it does not work.
comment in response to
post
Thanks for tagging me 🙌 looks really interesting? Would you like to present this to our research lab in an online meeting?
comment in response to
post
Thanks for the info! I will check it out!
comment in response to
post
How come? Any advice on where to start learning more? 😁
comment in response to
post
First we have @albertrapp.bsky.social. I like his content because it focuses on what I call the "missing middle", not too basic and not too advanced. For example his book on {gt} tables is best in class for how to make tables in R
He has a weekly newsletter - 100% recommended
gt.albert-rapp.de
comment in response to
post
Last but not least we have @oscarkjell.bsky.social which has the awesome {text} package that brings huggingface NLP transformer capabilities to R
Combine that with {bksyr} and you have a powerful combination.
r-text.org
comment in response to
post
I would be happy to be included :)
comment in response to
post
The same, im more in to psych assessments, but am happy to join if that is suitable :)
comment in response to
post
Thank for starting this package – im happy to join.
comment in response to
post
Thanks for creating this package; i would love to be added :)