Skip to content

Commit 618cea0

Browse files
committed
add lang support
1 parent d6b0220 commit 618cea0

File tree

19 files changed

+7266
-1436
lines changed

19 files changed

+7266
-1436
lines changed

app/(navbar)/categories/page.jsx

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
2+
import React from "react"
3+
4+
const categories = [
5+
{
6+
area: "Natural Language Processing",
7+
url: "https://web.archive.org/web/20250328105155/https://paperswithcode.com/methods/area/natural-language-processing",
8+
subcategories: [
9+
{ name: "Language Models", url: "https://web.archive.org/web/20250328105155/https://paperswithcode.com/methods/category/language-models" },
10+
{ name: "Transformers", url: "https://web.archive.org/web/20250328105155/https://paperswithcode.com/methods/category/transformers" },
11+
{ name: "Word Embeddings", url: "https://web.archive.org/web/20250328105155/https://paperswithcode.com/methods/category/word-embeddings" },
12+
{ name: "Text Classification", url: "https://web.archive.org/web/20250328105155/https://paperswithcode.com/methods/category/text-classification-models" },
13+
{ name: "Machine Translation", url: "https://web.archive.org/web/20250328105155/https://paperswithcode.com/methods/category/machine-translation-models" },
14+
{ name: "Question Answering", url: "https://web.archive.org/web/20250328105155/https://paperswithcode.com/methods/category/question-answering-models" },
15+
{ name: "Entity Recognition", url: "https://web.archive.org/web/20250328105155/https://paperswithcode.com/methods/category/entity-recognition-models" },
16+
],
17+
},
18+
{
19+
area: "Computer Vision",
20+
url: "https://web.archive.org/web/20250328105155/https://paperswithcode.com/methods/area/computer-vision",
21+
subcategories: [
22+
{ name: "Image Classification", url: "https://web.archive.org/web/20250328105155/https://paperswithcode.com/task/image-classification" },
23+
{ name: "Object Detection", url: "https://web.archive.org/web/20250328105155/https://paperswithcode.com/task/object-detection" },
24+
{ name: "Semantic Segmentation", url: "https://web.archive.org/web/20250328105155/https://paperswithcode.com/task/semantic-segmentation" },
25+
{ name: "Image Generation", url: "https://web.archive.org/web/20250328105155/https://paperswithcode.com/task/image-generation" },
26+
{ name: "Pose Estimation", url: "https://web.archive.org/web/20250328105155/https://paperswithcode.com/task/pose-estimation" },
27+
],
28+
},
29+
{
30+
area: "Speech & Audio",
31+
url: "https://web.archive.org/web/20250328105155/https://paperswithcode.com/methods/area/speech",
32+
subcategories: [
33+
{ name: "Automatic Speech Recognition (ASR)", url: "https://web.archive.org/web/20250328105155/https://paperswithcode.com/task/automatic-speech-recognition" },
34+
{ name: "Text-to-Speech (TTS)", url: "https://web.archive.org/web/20250328105155/https://paperswithcode.com/task/text-to-speech" },
35+
{ name: "Speaker Diarization", url: "https://web.archive.org/web/20250328105155/https://paperswithcode.com/task/speaker-diarization" },
36+
{ name: "Speech Enhancement", url: "https://web.archive.org/web/20250328105155/https://paperswithcode.com/task/speech-enhancement" },
37+
],
38+
},
39+
]
40+
41+
export default function Page() {
42+
return (
43+
<div>
44+
<h1 className="mt-2 text-4xl font-bold tracking-tight dark:text-slate-100">
45+
Deep Learning Categories
46+
</h1>
47+
<p className="mt-4 text-lg dark:text-slate-100">
48+
Explore state-of-the-art methods, benchmarks, and code for each area. Inspired by PapersWithCode.
49+
</p>
50+
{categories.map((cat) => (
51+
<section key={cat.area} className="mt-8">
52+
<h2 className="text-3xl font-semibold tracking-tight dark:text-slate-100">
53+
<a href={cat.url} target="_blank" rel="noopener noreferrer">{cat.area}</a>
54+
</h2>
55+
<ul className="mt-4 ml-4 list-disc">
56+
{cat.subcategories.map((sub) => (
57+
<li key={sub.name} className="mb-2">
58+
<a href={sub.url} target="_blank" rel="noopener noreferrer" className="text-xl text-blue-600 dark:text-blue-400 hover:underline">
59+
{sub.name}
60+
</a>
61+
</li>
62+
))}
63+
</ul>
64+
</section>
65+
))}
66+
</div>
67+
)
68+
}

app/(navbar)/dataset/page.jsx

Lines changed: 103 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,103 @@
1+
// import HeatmapChart from "@/components/hightchart/HeatmapChart"
2+
// import HighChart from "@/components/hightchart/HighChart"
3+
// import PairwiseComparisonChart from "@/components/hightchart/PairwiseComparisonChart"
4+
import HeatmapChart from "@/components/hightchart/HeatmapChart"
5+
import HighChart from "@/components/hightchart/HighChart"
6+
import PairwiseComparisonChart from "@/components/hightchart/PairwiseComparisonChart"
7+
import React from "react"
8+
9+
export default function Page() {
10+
const evaluationData = [
11+
{ models: ["Model A", "Model B"], scores: [1, -1, 0, 1, -1] },
12+
{ models: ["Model C", "Model D"], scores: [0, 0, 1, -1, 0] },
13+
{ models: ["Model E", "Model F"], scores: [-1, 1, 0, -1, 1] },
14+
{ models: ["Model G", "Model H"], scores: [1, 0, -1, 1, 0] },
15+
{ models: ["Model A", "Model C"], scores: [-1, 1, 0, -1, 0] },
16+
{ models: ["Model B", "Model D"], scores: [1, 0, -1, 1, -1] },
17+
{ models: ["Model E", "Model G"], scores: [0, 1, -1, 0, 1] },
18+
{ models: ["Model F", "Model H"], scores: [1, -1, 0, 1, -1] },
19+
]
20+
21+
const data = [
22+
[0, 1, 0.8],
23+
[0, 2, -0.5],
24+
[0, 3, 0.2],
25+
[0, 4, 0.6],
26+
[0, 5, -0.3],
27+
[0, 6, 0.1],
28+
[0, 7, 0.9],
29+
[1, 2, -0.7],
30+
[1, 3, -0.2],
31+
[1, 4, 0.4],
32+
[1, 5, -0.6],
33+
[1, 6, -0.1],
34+
[1, 7, 0.7],
35+
[2, 3, 0.6],
36+
[2, 4, 0.9],
37+
[2, 5, 0.2],
38+
[2, 6, 0.5],
39+
[2, 7, 0.8],
40+
[3, 4, 0.3],
41+
[3, 5, -0.4],
42+
[3, 6, -0.1],
43+
[3, 7, 0.5],
44+
[4, 5, -0.8],
45+
[4, 6, -0.3],
46+
[4, 7, 0.2],
47+
[5, 6, 0.4],
48+
[5, 7, 0.9],
49+
[6, 7, 0.6],
50+
]
51+
52+
const models = [
53+
"Model A",
54+
"Model B",
55+
"Model C",
56+
"Model D",
57+
"Model E",
58+
"Model F",
59+
"Model G",
60+
"Model H",
61+
]
62+
const inputs = Array.from({ length: 40 }, (_, i) => `Input ${i + 1}`)
63+
64+
const generateScores = () => {
65+
const scores = [-1, 0, 1]
66+
return inputs.map((input) => ({
67+
modelPair: `${models[Math.floor(Math.random() * models.length)]} vs ${models[Math.floor(Math.random() * models.length)]}`,
68+
input: input,
69+
score: scores[Math.floor(Math.random() * scores.length)],
70+
}))
71+
}
72+
73+
const heatmapData = [...generateScores()]
74+
75+
return (
76+
<div>
77+
<h1 className="mt-2 text-4xl font-bold tracking-tight dark:text-slate-100">
78+
Dataset
79+
</h1>
80+
<h3 className="font-semibold tracking-tight dark:text-slate-100 mt-8 text-2xl">
81+
Sample 1
82+
</h3>
83+
<p className="mt-4 first:mt-0">
84+
Sample data of Evaluation Result.
85+
</p>
86+
{/* <HighChart data={evaluationData} /> */}
87+
<h3 className="font-semibold tracking-tight dark:text-slate-100 mt-8 text-2xl">
88+
Sample 2
89+
</h3>
90+
<p className="mt-4 first:mt-0">
91+
Sample data of Evaluation Result.
92+
</p>
93+
{/* <PairwiseComparisonChart data={data} /> */}
94+
<h3 className="font-semibold tracking-tight dark:text-slate-100 mt-8 text-2xl">
95+
Sample 3
96+
</h3>
97+
<p className="mt-4 first:mt-0">
98+
Sample data of Evaluation Result.
99+
</p>
100+
{/* <HeatmapChart data={heatmapData} /> */}
101+
</div>
102+
)
103+
}

0 commit comments

Comments
 (0)