diff --git "a/README.md" "b/README.md" --- "a/README.md" +++ "b/README.md" @@ -1,5 +1,5 @@ --- -base_model: Leo1212/longformer-base-4096-sentence-transformers-all-nli-stsb-quora-nq +base_model: HSLU-AICOMP-LearningAgencyLab/automated-essay-scoring-setfit library_name: setfit metrics: - accuracy @@ -9,241 +9,13 @@ tags: - sentence-transformers - text-classification - generated_from_setfit_trainer -widget: -- text: 'While the idea of using a Facial Action Coding System in the educational - process would certainly be interesting, I do not think it is nearly advanced enough - to be able to be used in modern schools. While the technology may be able to find - the hidden emotions behind the famous portrait Mona Lisa by Leonardo da Vinci, - that does not mean it is in a position to help students learn. Simply put, the - Facial Action Coding System does not have the viability, efficacy, or privacy - needed in order to supplement learning. - - - Even if we allowed camera''s to scan the faces of students in school, we would - not be able to decode their emotions in a speed befiting our educational system - today. At the seventh passage, the author states that, "Your home PC can''t handle - the complex algorithms used to decode Mona Lisa''s smile," suggesting that the - majority of modern computers do not have the power to actually run the software. - The PCs that schools buy are almost never more powerful than the ones bought by - consumers for household use, and would thus also not be able to process the data, - making the technology rather useless in an educational setting. Even if a school - had the funds to buy a computer that could process the data quickly enough to - be useful, there are simply too many students for that one computer to process, - which would make the entire system useless. - - - If we were to simply put that first fact aside and instead look at the ability - for this technology to assist students in an ideal setting, we still find that - students can fake their emotions in order to cheat the system. In the third passage - of the artice, the author states, "Eckman has classified six basic emotions-happiness - ... and then associated each with charactersitic movements of the facial muscles," - meaning that the software associated voluntary or involuntary movements of the - face with emotions. The problem with this system is that students can change the - look of their face quite easily, and can thus convince the computer to produce - desired results, making the system disfunctional. There are quite a few reasons - children, especially young ones, would want to make the software not work, including - tricking the computer into moving from the original learning program into a more - desired one and them simply wanting to see the program fail through their abilities. - - - The idea of being able to find out the emotions of all of the chidlren in a school - on a whim also rises privacy concerns that would need to be addressed before any - program including this software would be implemented. The information gathered - from students could be used for selfish purposes, as explained in the sixth passage - of the article, "if you smile when a Web ad appears on your screen, a similar - ad might follow. But if you frown, the next ad will be different," showing that - companies have use for this technology to better their businesses. If ad companies - managed to get this emotional information from students all across the country, - either from the government itself or through illegal actions, they could use that - information to make new products and ads that would try to exploit the emotions - of children. Because of this and the added concern of giving the information to - the government itself, many parents would oppose a system that tracks and records - the emotions of children. - - - Because of the lack of availablity, the potential cheating of the software, and - the privacy concerns involved, the Facial Action Coding System is not able to - be used in its current state to benefit schools. While this technology could be - used in the future to help students, for example students with mental disabilities, - it is not able to do so as it is now. It will be interesting to see what this - and similar technologies grow to be, for better or for worse.' -- text: 'The face was just a natural landform made by butte or mesa which were landforms - common around around the American West. I know this because it says in the article - " As a rule of thumb, you can discern things in a digital image 3 times bigger - than the pixel, "So if there were objects in this picture like airplanes on the - ground or Egyptian-style pyramids or even small shacks, you could see what they - were. - - - Even though many scientists thought the Face was a alien artifact, photographing - Cydonia became a priority for NASA when Mars Global Surveyor arrived at the Red - Planet. People may have thought the Face was bona fide evidence of life on Mars - evidence the NASA would rather hide. - - - The face was just a huge rock formation which looked as to be a human head. The - head was formed by shadows giving the illusion of eyes, nose and mouth. Scientists - figured it was just another Martian mesa common enough around Cydonia. - - - An those are the many reasons why I think it was not created by aliens but created - by natural landform.' -- text: 'Mapping the Thoughts of Students - - - In the article "Making Mona Lisa Smile," advancing technology used for recognizing - human emotion is suggested for use in the classroom. By having a computer be able - to register the emotions of a student and adjust the lesson accordingly using - a program called Facial Action Coding System, student productivity will excel, - and the stress felt by teachers will ease. - - - Lessons, for as long as education has existed, have been adjusted accordingly - to the audience by the tutors. For instance, a teacher may observe their students - leaning forward in interest of the lesson, and may continue based off of that - subject. Others may see students slump in their chairs, or watch with glossy, - bored eyes, and will attempt to reconnect with the class. Facial recognition is - already common. "In fact, we humans perform this same impressive "calculation" - every day (Paragraph 5)." But it is done ineffectively in the classroom due to - one person teaching twenty others. A computer is unbiased, and only focuses on - one body: The user. By reading and calculating the most subtle changes in one''s - face, beyond what the naked eye can see, a computer is able to follow "emotion - algorithms" and change the lesson''s strategy "...like an effective human instructor - (Paragraph 6)." The lesson becomes personalized, benefiting the student greatly, - as if they had their own private tutor. "Most human communication is nonverbal, - including emotional communication (Paragraph 6)." The student will understand - quicker and learn at a greater rate than if they simply sat and listened to an - adult stand at the front of the classroom. - - - In turn, this student productivity will drastically lower the stress and pressure - a teacher will feel over their students. Teachers, more often than not, truly - care if their students understand what is being taught and want to see them succeed. - Teachers, however, do not have the time to focus on each student individualy. - By watching a student fail, a teacher feels as if they themselves are failing. - With emotion tracking classroom computers, each student has a better chance of - succeeding. A student, who has mastered balancing chemical equations, will no - longer have to ''start back at square one'' with another student who knows nothing - of math or chemistry. Students who fall behind more often will be more equal with - their quicker classmates. On a whole, the class itself will be more productive, - and the teacher may even be able to move on and prepare more advanced lessons. - "By weighting the different units, the software can even identify mixed emotions - (Paragraph 4)." The focus the computer has on the student can be greater, and - more effective, than what a single adult can provide. Teachers will feel more - at ease knowing their students have the ''attention'' they need for more challenging - subjects. - - - Facial recognition is not a new concept, and has existed even before the invention - of computers. Efficiency is what has been changing, and for the better. If computers, - able to recognize and adapt according the user''s emotions, better a student''s - productivity and reduce a teacher''s stress, Facial Action Coding Systems are - of great value in the classroom.' -- text: 'While NASA''s greatest scientists were working hard in their Jet Propulsion - Lab in 1976, an eerie picture appeared on their monitors, as the spacecraft they - sent to Mars, the Viking 1, has taken a picture of what looks like an alien-built - human face on Mars, though it was actually another basic landform on the red planet. - The reason Viking I was taking pictures of Mars was to scope out possible landing - sites for its sister ship, the Viking 2. The scientists did realize that this - "face" was just another common Martian landform, so when they put the picture - up, its caption stated that it was only a rock formation resembling a human head. - In order to fully prove to everyone that the Face on Mars was just a landform, - they even sent the MGS, or Mars Global Surveyor, to retake pictures of the area - presumed to be the face. They even sent it back for another round of retakes thanks - to peoples'' suspicions of cloudy weather blocking the view of the face! Thanks - to many tests and retakes, scientists have proven that the Face on Mars is just - another landform. - - - While Viking 1 was taking pictures on Mars to find a landing site for Viking 2, - it snapped a picture of what appeared to be a gigantic face staring at them like - a man staring at the stars with binoculars. Although scientists were very surprised - when the face appeared on the monitors in their lab, their sensation lasted only - a short time. They figured it was only another common Martian mesa with shadows - that only resembled a human face. So that they could get enough hey-everyone-check-this-out - popularity for the red planet, they made the image of the Face on Mars public, - and the NASA scientists gave it the caption noting that it was "a huge rock formation... - which resembles a human head... formed by shadows giving the illusion of eyes, - nose, and mouth." Thanks to this new caption, public attention for Mars, but it - ended up dominating people''s view on Mars, making them create conspiracy theories - rather than convince the truth that it was only another landform on Mars. Despite - the people making the Face on Mars a well-known pop icon, it always was and always - will be another Martian landform. - - - In order to prove to the people that the Face on Mars was an ordinary-as-white-paint - landform, they sent a new probe, the Martian Global Surveyor, or MGS, to Mars - in 1998 to try to retake pictures of the face. The MGS succeeded at its task, - as it swayed public opinion away from the idea that the face had to do with alien - life existing on Mars at that time. Thousands of looking-forward-to-this web explorers - were waiting for the picture to become public, they were also disappointed by - the fact that it was a natural landform rather than an exotic alien monument. - However, not everyone was satisfied with these results, as they wanted more proof - that the face was a face and not a landform thanks to cloudy weather. The MGS - did succeed in proving that the Face on Mars was not a face, though more attempts - were required to get the idea to everyone. - - - Not everyone was content with the results of the MGS expedition, wanting to believe - that the cloudy weather at the time the picture was taken to be responsible for - the lack of the face''s visibility. Despite how NASA''s chief scientist for their - Mars Exploration Program, Jim Garvin, stated that "it''s not easy to target Cydonia," - the people wanted more retakes. NASA was able to get the MGS to get better shots - of the face in April 2001, and they were able to capture a wonderful photo with - the camera''s maximum resolution, which dominated the Viking 1''s resolution by - being nearly thiry times better. Thanks to Garvin''s reasoning and the high-as-the-sky - resolution of the MSG''s new pictures, they were able to prove that the face was - only the equivalent of a butte or mesa, both of which were common landforms. Thanks - to the MSG''s multiple trips, they captured enough well-detalied pictures to prove - the true identity of the Face of Mars. - - - The Face of Mars is only an ordinary landform, and it always will be just another - ordinary landform. The scientists began with a caption to the original photo stating - that it was a landform only resembling a face, then they sent the Mars Global - Surveyor out to try to prove that the Face on Mars was a landform. They also later - sent the MGS out again during not-cloudy-at-all weather to let everyone know for - sure that the face was not a face. All of these efforts combined let people know - how the Face on Mars was not a face but only a landform, but there are likely - still people out there who belive that the Face on Mars is still some type of - alien relic. Despite how popular the conspiracy theories about the Face of Mars - being an alien monument, it was only a standard landform the whole time.' -- text: 'Having fellow citizens limiting car usage can have many advantages. Even - though there are many reasons, a big topic would be because of the gas getting - in the air creating "smog" or pollution. Keeping the earth clean but banning cars - can make the enviornment a better place. - - - To being with, limiting the use of cars can be very good for our enviornment because - it would make the air less polluted. As stated in source 2 paragraph 5,"congestion - was down 60 percent in the capitol of France, after five days of intensifying - smog..." thats a big percent and with that we are making the earth green. France - even tried to ban cars even and odd to reduce the pollution as being talked about - in paragraph 2 and 3. They were being fined if they drove, that is atleast until - the air cleared up. - - - On the other hand, banning cars or not driving is a silly decision. It may be - good for our earth and our health, but if you need to leave three hours before - hand to reach your destination on time, then you need to buckle up and step on - the gas. If gas so so bad for the enviornment, then why dont we ban gas cars? - There are many indrustries and or companys that have created electronic cars. - Charging our cars many be difficlut for long road trips but there could be a slot - for gas for when our battery level is running low we can get some gas to reach - a destination and charge it. - - - Having fellow citizens limiting car usage can have many advantages, but also a - few disadvanteages. Cars can clean up the air but also make us gasp for it. Having - a car should be a choice we get to make. Having events and days where "no cars - can be driven or you get a fine" is not needed in anybodys lives. What decision - would you decide, having a car, or joining in on being green?   ' +widget: [] inference: true --- -# SetFit with Leo1212/longformer-base-4096-sentence-transformers-all-nli-stsb-quora-nq +# SetFit with HSLU-AICOMP-LearningAgencyLab/automated-essay-scoring-setfit -This is a [SetFit](https://github.com/huggingface/setfit) model that can be used for Text Classification. This SetFit model uses [Leo1212/longformer-base-4096-sentence-transformers-all-nli-stsb-quora-nq](https://huggingface.co/Leo1212/longformer-base-4096-sentence-transformers-all-nli-stsb-quora-nq) as the Sentence Transformer embedding model. A [LogisticRegression](https://scikit-learn.org/stable/modules/generated/sklearn.linear_model.LogisticRegression.html) instance is used for classification. +This is a [SetFit](https://github.com/huggingface/setfit) model that can be used for Text Classification. This SetFit model uses [HSLU-AICOMP-LearningAgencyLab/automated-essay-scoring-setfit](https://huggingface.co/HSLU-AICOMP-LearningAgencyLab/automated-essay-scoring-setfit) as the Sentence Transformer embedding model. A [LogisticRegression](https://scikit-learn.org/stable/modules/generated/sklearn.linear_model.LogisticRegression.html) instance is used for classification. The model has been trained using an efficient few-shot learning technique that involves: @@ -254,10 +26,10 @@ The model has been trained using an efficient few-shot learning technique that i ### Model Description - **Model Type:** SetFit -- **Sentence Transformer body:** [Leo1212/longformer-base-4096-sentence-transformers-all-nli-stsb-quora-nq](https://huggingface.co/Leo1212/longformer-base-4096-sentence-transformers-all-nli-stsb-quora-nq) +- **Sentence Transformer body:** [HSLU-AICOMP-LearningAgencyLab/automated-essay-scoring-setfit](https://huggingface.co/HSLU-AICOMP-LearningAgencyLab/automated-essay-scoring-setfit) - **Classification head:** a [LogisticRegression](https://scikit-learn.org/stable/modules/generated/sklearn.linear_model.LogisticRegression.html) instance - **Maximum Sequence Length:** 4098 tokens -- **Number of Classes:** 6 classes + @@ -268,16 +40,6 @@ The model has been trained using an efficient few-shot learning technique that i - **Paper:** [Efficient Few-Shot Learning Without Prompts](https://arxiv.org/abs/2209.11055) - **Blogpost:** [SetFit: Efficient Few-Shot Learning Without Prompts](https://huggingface.co/blog/setfit) -### Model Labels -| Label | Examples | -|:------|:-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| -| 4 | | -| 3 | | -| 5 | | -| 1 | | -| 6 | | -| 2 | | - ## Uses ### Direct Use for Inference @@ -296,13 +58,7 @@ from setfit import SetFitModel # Download from the 🤗 Hub model = SetFitModel.from_pretrained("HSLU-AICOMP-LearningAgencyLab/automated-essay-scoring-setfit-finetuned") # Run inference -preds = model("The face was just a natural landform made by butte or mesa which were landforms common around around the American West. I know this because it says in the article \" As a rule of thumb, you can discern things in a digital image 3 times bigger than the pixel, \"So if there were objects in this picture like airplanes on the ground or Egyptian-style pyramids or even small shacks, you could see what they were. - -Even though many scientists thought the Face was a alien artifact, photographing Cydonia became a priority for NASA when Mars Global Surveyor arrived at the Red Planet. People may have thought the Face was bona fide evidence of life on Mars evidence the NASA would rather hide. - -The face was just a huge rock formation which looked as to be a human head. The head was formed by shadows giving the illusion of eyes, nose and mouth. Scientists figured it was just another Martian mesa common enough around Cydonia. - -An those are the many reasons why I think it was not created by aliens but created by natural landform.") +preds = model("I loved the spiderman movie!") ```