Skip to content

Commit

Permalink
docs: fix from_* instead of read_* in case of files (#311)
Browse files Browse the repository at this point in the history
  • Loading branch information
TheooJ authored Jul 19, 2024
1 parent 9ca8230 commit bd60505
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/data/json.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
```{ .python .no-check }
import edsnlp

docs = edsnlp.data.from_json(df, converter="omop")
docs = edsnlp.data.read_json(df, converter="omop")
docs = docs.map_pipeline(nlp)
res = edsnlp.data.to_json(docs, converter="omop")
```
Expand Down
2 changes: 1 addition & 1 deletion docs/data/parquet.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
```{ .python .no-check }
import edsnlp

docs = edsnlp.data.from_parquet(df, converter="omop")
docs = edsnlp.data.read_parquet(df, converter="omop")
docs = docs.map_pipeline(nlp)
res = edsnlp.data.to_parquet(docs, converter="omop")
```
Expand Down
2 changes: 1 addition & 1 deletion docs/data/standoff.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
```{ .python .no-check }
import edsnlp

doc_iterator = edsnlp.data.from_standoff(path)
doc_iterator = edsnlp.data.read_standoff(path)
res = edsnlp.data.write_standoff(docs, path)
```

Expand Down

0 comments on commit bd60505

Please sign in to comment.