Skip to content

Commit

Permalink
[wip] Update
Browse files Browse the repository at this point in the history
  • Loading branch information
ljvmiranda921 committed Jan 19, 2025
1 parent 47d16fc commit 5a99546
Showing 1 changed file with 23 additions and 3 deletions.
26 changes: 23 additions & 3 deletions models/v0.2.0/scripts/report.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from pathlib import Path
from typing import Any

import typer
import pandas as pd
Expand All @@ -19,10 +20,29 @@ def report(
if model_dir.is_dir():
model_name = model_dir.name
for json_file in model_dir.glob("*.json"):
task_dataset = json_file.stem
task, dataset = json_file.stem.split("_")
data = read_json(json_file)
results.append((model_name, task_dataset, data))
breakpoint()
results.append((model_name, task, dataset, data))

msg.info(f"Found {len(results)} results in {indir}")

msg.text("Parsing syntactic annotation results...")
syn_rows = []
for result in results:
pass

msg.text("Parsing NER results...")
ner_rows = []


def parse_syntactic_results(results: dict[str, Any]) -> dict[str, float]:
"""Get tokenizer, lemmatization, morph, and parsing evals"""
pass


def parse_ner_results(results: dict[str, Any]) -> dict[str, float]:
"""Get NER evals"""
pass


if __name__ == "__main__":
Expand Down

0 comments on commit 5a99546

Please sign in to comment.