Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding credibility signals feature #562

Merged
merged 39 commits into from
Aug 26, 2024
Merged

Conversation

rosannamilner
Copy link
Collaborator

@rosannamilner rosannamilner commented Aug 5, 2024

This new feature adds six credibility signal classifiers:

  • news framing (topic)
  • news genre
  • persuasion techniques
  • subjectivity
  • previous fact checks
  • machine generated text

Related to AFP-Medialab/InVID-Translations#93

image (35)

Add assistant text classifier UI with html formatting

first commit

added new sagas

starting to add accordion display

Displaying gcloud cred signals

tidied up list of genre, topic, persuasion

added typography

machince generated text service added

fixed subjectivity

displaying subjective sentences

displaying correct subjective sentences

tidied display of credibillity signals

using stored secrets for kinit services

removed classifiers from URL test box

added code for checking logged in for pfc

preventing pfc from being called if not logged in

removing unnnecessary imports

adding subj tooltip and pfc limit

refactored credibility signals

added messages for after logging in

login message and passing text to semantic search as variable

captialised genres

added assistant.json text

moved tooltips out to cardheader

pfc and mgt sagas work after login

typos

added comments

added embedding message

moved credsignals grid to correct card

removed console.log message

removed unnecessary tooltip

log

moved text to assistant.json

tidied code

counting categories in wrapfunc

counting categories in wrapfunc change
Add assistant text classifier UI with html formatting

first commit

added new sagas

starting to add accordion display

Displaying gcloud cred signals

tidied up list of genre, topic, persuasion

added typography

machince generated text service added

fixed subjectivity

displaying subjective sentences

displaying correct subjective sentences

tidied display of credibillity signals

using stored secrets for kinit services

removed classifiers from URL test box

added code for checking logged in for pfc

preventing pfc from being called if not logged in

removing unnnecessary imports

adding subj tooltip and pfc limit

refactored credibility signals

added messages for after logging in

login message and passing text to semantic search as variable

captialised genres

added assistant.json text

moved tooltips out to cardheader

pfc and mgt sagas work after login

typos

added comments

added embedding message

moved credsignals grid to correct card

removed console.log message

removed unnecessary tooltip

log

moved text to assistant.json

tidied code

counting categories in wrapfunc

counting categories in wrapfunc change

counting categories in wrapfunc change

Subjectivty confidence colour blue

refactoring pertech code

refactor for correct persuasion techniques

added/removed comments

updated tooltip text

remove console.log

fixes for persuasion techniques

fixes for subjectivity

edited keyword for semantic search

changed mgt.pred to use keyword
Copy link
Collaborator

@twinkarma twinkarma left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A few minor suggestion for changes but overall looking really good! Great work!

@rosannamilner rosannamilner requested a review from twinkarma August 6, 2024 08:39
Copy link
Collaborator

@twinkarma twinkarma left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

Copy link
Contributor

@Sallaa Sallaa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a check for Arabic (and LTR languages) but the rest looks good to me 👍

Please merge beta-master into your branch to also fix the conflicts

@rosannamilner
Copy link
Collaborator Author

Just a check for Arabic (and LTR languages) but the rest looks good to me 👍

Please merge beta-master into your branch to also fix the conflicts

Thanks Valentin - noticing I don't have the languages drop down menu at the top, it appears empty and I'm struggling to work out why it's not appearing. (Checked for this branch and same on beta-master). Do you have any ideas why this could be happening?

image (36)

Looking into components/Navitems/languages/languages.jsx, storeLanguage prints out as "en" but languageList is empty.

@Sallaa
Copy link
Contributor

Sallaa commented Aug 12, 2024

@rosannamilner this usually happens when you are pointing to the wrong branch or when you are offline (no internet connection)

Can you try the following troubleshooting?

  1. Merge beta-master into your branch to get the latest code (this will also allow you to fix remaining conflicts)
  2. Make sure your .env config uses REACT_APP_TRANSLATION_TAG=v0.82
  3. If you changed your .env configuration, run npm run dev again
  4. Uninstall / reinstall the plugin on Chrome or do a hard reload and clear the cache (open the Chrome inspector, then hold the refresh button in chrome to see the Empty Cache and Hard Reload option)
  5. Double check your internet connection just in case

Let me know if you still face the issue after this

@Sallaa
Copy link
Contributor

Sallaa commented Aug 12, 2024

Also, let me know if you see error messages in the console. They could indicate where the problem is coming from

@rosannamilner
Copy link
Collaborator Author

Also, let me know if you see error messages in the console. They could indicate where the problem is coming from

I have done the above with no luck, but I do see these errors in the console:

Failed to load resource: net::ERR_FILE_NOT_FOUND    undefined/dictionaries/components/NavItems/defaultLanguage.tsv?lang=en&tag=v0.82:1
Failed to load resource: net::ERR_FILE_NOT_FOUND    undefined/languages?tag=v0.82:1    

@rosannamilner
Copy link
Collaborator Author

rosannamilner commented Aug 12, 2024

Also, let me know if you see error messages in the console. They could indicate where the problem is coming from

I have done the above with no luck, but I do see these errors in the console:

Failed to load resource: net::ERR_FILE_NOT_FOUND    undefined/dictionaries/components/NavItems/defaultLanguage.tsv?lang=en&tag=v0.82:1
Failed to load resource: net::ERR_FILE_NOT_FOUND    undefined/languages?tag=v0.82:1    

@Sallaa I'm missing REACT_APP_TRANSLATION_URL from my .env - can you let me know what that should be please?

@Sallaa Sallaa merged commit f982c06 into beta-master Aug 26, 2024
1 check passed
@rosannamilner rosannamilner deleted the assistant/credibility-signals branch September 9, 2024 14:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants