|
| 1 | +--- |
| 2 | +title: "DMP ’25 Week 01 Update by Aman Naik" |
| 3 | +excerpt: "This week's focus was exploring the write-activity codebase, finding appropriate grammar correction models & understanding Abiword documentations." |
| 4 | +category: "DEVELOPER NEWS" |
| 5 | +date: "2025-06-09" |
| 6 | +slug: "dmp-25-AmanNaik-week01" |
| 7 | +author: "Aman Naik" |
| 8 | +description: "Member and DMP'25 Contributor at SugarLabs" |
| 9 | +tags: "dmp25,writeactivity,write,sugarlabs,week01,amannaik247" |
| 10 | +image: "assets/Images/c4gt_DMP.png" |
| 11 | +--- |
| 12 | + |
| 13 | +<!-- markdownlint-disable --> |
| 14 | + |
| 15 | +# Week 01 Progress Report by Aman Naik |
| 16 | + |
| 17 | +**Project:** [Add an AI-assistant to the Write Activity](https://github.com/sugarlabs/write-activity/issues/52) |
| 18 | +**Mentors:** [Walter Bender](https://github.com/walterbender), [Ibiam Chihurumnaya](https://github.com/chimosky). |
| 19 | +**Assisting Mentors:** [Devin Ulibarri](https://github.com/pikurasa) |
| 20 | +**Reporting Period:** 2025-06-02 - 2025-06-08 |
| 21 | + |
| 22 | +--- |
| 23 | + |
| 24 | +## Goals for This Week |
| 25 | + |
| 26 | +- **Goal 1:** Understand write activity's codebase. |
| 27 | +- **Goal 2:** Explore pertinent grammar correction models for real time grammar correction |
| 28 | +- **Goal 3:** Understand the [Abiword](https://github.com/AbiWord) word-processor documentation |
| 29 | + |
| 30 | +--- |
| 31 | + |
| 32 | +## This Week’s Achievements |
| 33 | + |
| 34 | +1. **Understood the activity's codebase** |
| 35 | + - Gained a clear understanding of the overall structure and logic of the Write activity's codebase. |
| 36 | + - This includes identifying key components, data flow, and how the Abiword processor is leveraged for this activity. |
| 37 | +2. **Explored pertinent grammar correction models** |
| 38 | + - Shortlisted grammar correction models suitable for real time grammar correction and can be used with an open source software. |
| 39 | + - Created API endpoints using Hugging Face spaces for quick testing in sugar. |
| 40 | + |
| 41 | +3. **Understood the Abiword processor** |
| 42 | + - Abiword is an open source word processor, which is leveraged by the write activity. |
| 43 | + - It has a parser called 'link-grammar' that was recently developed, which might be useful for grammar correction as well. |
| 44 | + |
| 45 | +--- |
| 46 | + |
| 47 | +## Challenges & How I Overcame Them |
| 48 | + |
| 49 | +- **Challenge:** Difficulty in finding reliable grammar correction models on hugging face which can also be compatible open source software. |
| 50 | +**Solution:** Found link-grammar that could be an option for reliable grammar correction feature. Also, found some hugging face models(relevant license) after rigorously searching. |
| 51 | + |
| 52 | +- **Challenge:** Testing hugging face models with no inference points and testing them inside Sugar. |
| 53 | +**Solution:** Most Hugging Face models can’t be installed directly in Sugar because they require heavy dependencies like Torch and Transformers, which increase memory usage in a virtual machine. Therefore, I used hugging face spaces and ran the models there, which also provides API endpoints for quick testing inside Sugar. |
| 54 | + |
| 55 | +--- |
| 56 | + |
| 57 | +## Key Learnings |
| 58 | + |
| 59 | +- Gained a solid understanding of the Write activity's code structure and how it integrates the Abiword processor. |
| 60 | +- Explored lightweight, open-source grammar correction models and successfully tested them using Hugging Face Spaces via API endpoints. |
| 61 | +- Discovered that Abiword’s link-grammar parser might be leveraged for native grammar correction within the activity. |
| 62 | + |
| 63 | +--- |
| 64 | + |
| 65 | +## Next Week’s Roadmap |
| 66 | + |
| 67 | +- Finalise a grammar correction model and fine tune it if needed |
| 68 | +- Create a FastAPI endpoint and upload the selected model on AWS for testing |
| 69 | +- Integrate grammar correction into write-activity |
| 70 | +- Explore better spelling correction models |
| 71 | + |
| 72 | +--- |
| 73 | + |
| 74 | +## Acknowledgments |
| 75 | + |
| 76 | +Thank you to my mentors, the Sugar Labs community, and fellow contributors for your continued guidance and support! |
| 77 | + |
| 78 | +--- |
| 79 | + |
| 80 | +## Connect with Me |
| 81 | + |
| 82 | +- GitHub: [@amannaik247](https://github.com/amannaik247) |
| 83 | + |
| 84 | +- LinkedIn: [Aman Naik](https://www.linkedin.com/in/aman-naik/) |
| 85 | + |
| 86 | +--- |
0 commit comments