infinite-dataset-hub/CodeLinguist
收藏Hugging Face2024-09-04 更新2025-04-12 收录
下载链接:
https://hf-mirror.com/datasets/infinite-dataset-hub/CodeLinguist
下载链接
链接失效反馈官方服务:
资源简介:
---
license: mit
tags:
- infinite-dataset-hub
- synthetic
---
# CodeLinguist
tags: Linguistics, Python, Java, HTML, Identifier Task
_Note: This is an AI-generated dataset so its content may be inaccurate or false_
**Dataset Description:**
The 'CodeLinguist' dataset comprises various code snippets in Python, Java, and HTML, alongside their corresponding identifier tags. Each snippet is labeled with a unique identifier to facilitate the machine learning model's task of recognizing and classifying the programming language and distinguishing HTML code from programming languages. The labeling emphasizes the linguistic features and patterns characteristic of each language and the semantic role of HTML in structuring web content.
**CSV Content Preview:**
```csv
"code_snippet","identifier"
"print('Hello, World!')","Python"
"public class HelloWorld {public static void main(String[] args) {System.out.println('Hello, World!');}}","Java"
"<html><head><title>Page Title</title></head><body><h1>This is a Heading</h1><p>This is a paragraph.</p></body></html>","HTML"
"for i in range(5): print(i)","Python"
"for (int i = 0; i < 5; i++) {System.out.println(i);}","Java"
```
**Source of the data:**
The dataset was generated using the [Infinite Dataset Hub](https://huggingface.co/spaces/infinite-dataset-hub/infinite-dataset-hub) and microsoft/Phi-3-mini-4k-instruct using the query 'python vs java vs html code identifier dataset':
- **Dataset Generation Page**: https://huggingface.co/spaces/infinite-dataset-hub/infinite-dataset-hub?q=python+vs+java+vs+html+code+identifier+dataset&dataset=CodeLinguist&tags=Linguistics,+Python,+Java,+HTML,+Identifier+Task
- **Model**: https://huggingface.co/microsoft/Phi-3-mini-4k-instruct
- **More Datasets**: https://huggingface.co/datasets?other=infinite-dataset-hub
提供机构:
infinite-dataset-hub



