NVIDIA-NeMo / NVIDIA-NeMo/Anonymizer

feat: add json and jsonl input format support

Open Beginner friendly
#6 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
Python
Stars
122
Forks
17
Avg merge
4d 2h
Merged PRs (30d)
11

Description

Priority Level

Medium (Nice to have)

Is your feature request related to a problem?

The reader currently only supports .csv and .parquet. Add support for .json and .jsonl input files to AnonymizerInput.

Describe the solution you'd like

In reader.py:_load_dataframe, add cases for .json (pd.read_json) and .jsonl (pd.read_json(lines=True)). Update the error message listing supported formats. Add tests in test_io.py for both formats.

Describe alternatives you've considered

No response

Additional context

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start in reader.py at AnonymizerInput._load_dataframe and review the existing CSV and Parquet cases. Add coverage in test_io.py for JSON and JSONL inputs, then verify the supported-format error message includes both extensions and the tests pass.

Written by the indexing model from the issue text.

Assessment

Tech stack
pandas, python
Domain
data
Issue type
Feature
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
75/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.