{"id":42757873,"url":"https://github.com/hamedbabaei/author-profiling-pan2023","last_synced_at":"2026-01-29T20:17:01.783Z","repository":{"id":177282475,"uuid":"649078395","full_name":"HamedBabaei/author-profiling-pan2023","owner":"HamedBabaei","description":"Symbol Team model for PAN@AP 2023 shared task on Profiling Cryptocurrency Influencers with Few-shot Learning","archived":false,"fork":false,"pushed_at":"2024-01-17T13:24:19.000Z","size":1548,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-09-05T04:43:02.302Z","etag":null,"topics":["author-profiling","contrastive-learning","encoder-decoder-model","few-shot-learning","flan-t5","large-language-models"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/HamedBabaei.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":"CITATION.cff","codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2023-06-03T17:50:18.000Z","updated_at":"2023-07-07T09:55:30.000Z","dependencies_parsed_at":"2024-01-17T15:29:29.360Z","dependency_job_id":"2ed6c725-d863-4749-91c2-8473c84274d4","html_url":"https://github.com/HamedBabaei/author-profiling-pan2023","commit_stats":null,"previous_names":["hamedbabaei/author-profiling-pan2023"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/HamedBabaei/author-profiling-pan2023","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HamedBabaei%2Fauthor-profiling-pan2023","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HamedBabaei%2Fauthor-profiling-pan2023/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HamedBabaei%2Fauthor-profiling-pan2023/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HamedBabaei%2Fauthor-profiling-pan2023/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/HamedBabaei","download_url":"https://codeload.github.com/HamedBabaei/author-profiling-pan2023/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HamedBabaei%2Fauthor-profiling-pan2023/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28884285,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-29T19:55:09.949Z","status":"ssl_error","status_checked_at":"2026-01-29T19:55:08.490Z","response_time":59,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["author-profiling","contrastive-learning","encoder-decoder-model","few-shot-learning","flan-t5","large-language-models"],"created_at":"2026-01-29T20:17:00.994Z","updated_at":"2026-01-29T20:17:01.778Z","avatar_url":"https://github.com/HamedBabaei.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Leveraging Large Language Models with Multiple Loss Learners for Few-Shot Author Profiling\n\nThis repository contains the code and data for the paper \"Leveraging Large Language Models with Multiple Loss Learners for Few-Shot Author Profiling\" by `Hamed Babaei Giglou, Mostafa Rahgouy, Jennifer D’Souza, Milad Molazadeh Oskuee, Hadi Bayrami Asl Tekanlou, and Cheryl D Seals`. The paper was presented at the 14th International Conference of the CLEF Association (CLEF 2023).\n\nThe objective of author profiling (AP) is to study the characteristics of authors through the analysis of how language is exchanged among people. Studying these attributes sometimes is challenging due to the lack of annotated data. This indicates the significance of studying AP from a low-resource perspective. This year at AP@PAN 2023 the major interest raised in profiling cryptocurrency influencers with a few-shot learning technique to analyze the effectiveness of advanced approaches in dealing with new tasks from a low-resource perspective.\n\n## Architecture of Proposed Framework\n\n\u003cimg src=\"images/main-diagram.png\"\n     alt=\"Architecture of Proposed Framework\"\n     style=\"position:center; width:25cm; height:16cm\" /\u003e\n     \n## How to use this repository\n\n### Directories\n\n- `dataset/`: Contains the datasets used in the paper.\n- `assets/`: Contains the model checkpoints used in the paper.\n- `visualization/`: Contains the code for the visualizing experiments in the paper.\n- `results/`: Contains the results of the experiments.\n\n### Requirements\n\n- Python 3.9 or higher\n- PyTorch 1.9.x or higher\n- Transformers 4.3.x or higher\n\n### Usage\n\n1. Clone the repository:\n\n```\nhttps://github.com/HamedBabaei/author-profiling-pan2023\ncd author-profiling-pan2023\n```\n\n2. Install the required packages:\n\n```\npip install -r requirements.txt\n```\n\n3. Run the experiments:\n   1. Inference fsl\n    ```bash\n    bash inference_fsl.sh \n    ```\n   2. Inference fsl\n   ```bash\n   bash inference_fsl_biencoder.sh \n   ``` \n   3. Baseline (random)\n    ```bash\n    bash random_baseline.sh \n    ```\n   4. Baseline (Zero Shot)\n   ```bash\n   bash zero_shot_baseline.sh\n   ``` \n   5. Train \u0026 Test SBERT\n    ```bash\n    bash train_test_runner_sbert.sh\n    ```\n   6. Train \u0026 Test flanT5\n   ```bash\n   bash train_test_runner_flan_t5.sh \n   ```  \n\n\n\u003c!--\n## Contributions\n\nContributions to this repository are welcome! If you find any issues or have suggestions for improvements, please feel free to open an issue or submit a PR.\n\n### How to Contribute\n\n1. Fork the repository.\n2. Create a new branch for your changes: `git checkout -b my-new-branch`\n3. Make your changes and commit them: `git commit -am 'Add some feature'`\n4. Push to the branch: `git push origin my-new-branch`\n5. Submit a pull request.\n\n### Guidelines\n\n- Please make sure your code follows the PEP 8 style guide.\n- Include tests for any new functionality you add.\n- Make sure your code is well-documented.\n- If you're adding a new dataset, please include a README file with information about the dataset and its source.\n- If you're adding a new model or experiment, please include a README file with information about the model or experiment and how to run it.\n\nThank you for your contributions!\n--\u003e\n\n## Citation\n\nIf you use this code in your research, please cite the following paper:\n\n```bib\n@InProceedings{giglou:2023,\n  author =                   {Hamed Babaei Giglou, Mostafa Rahgouy, Jennifer D’Souza, Milad Molazadeh Oskuee , Hadi Bayrami Asl Tekanlou and Cheryl D Seals},\n  booktitle =                {{CLEF 2023 Labs and Workshops, Notebook Papers}},\n  month =                    sep,\n  publisher =                {CEUR-WS.org},\n  title =                    {{Leveraging Large Language Models with Multiple Loss Learners for Few-Shot Author Profiling}},\n  year =                     2023\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhamedbabaei%2Fauthor-profiling-pan2023","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhamedbabaei%2Fauthor-profiling-pan2023","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhamedbabaei%2Fauthor-profiling-pan2023/lists"}