Skip to content

Commit

Permalink
Annotation Extensions (#504)
Browse files Browse the repository at this point in the history
  • Loading branch information
rabitt authored Apr 29, 2021
1 parent b782d52 commit 36eeec5
Show file tree
Hide file tree
Showing 55 changed files with 1,721 additions and 913 deletions.
8 changes: 0 additions & 8 deletions docs/source/contributing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -361,14 +361,6 @@ We've added one extra convenience flag for this test, for getting the tests runn

which will skip the downloading step. Note that this is just for convenience during debugging - the tests should eventually all pass without this flag.

.. _working_big_datasets:

Working with big datasets
^^^^^^^^^^^^^^^^^^^^^^^^^

In the development of large datasets, it is advisable to create an index as small as possible to optimize the implementation process
of the dataset loader and pass the tests.


.. _reducing_test_space:

Expand Down
5 changes: 4 additions & 1 deletion docs/source/contributing_examples/example.py
Original file line number Diff line number Diff line change
Expand Up @@ -254,8 +254,11 @@ def load_annotation(fhandle: TextIO) -> Optional[annotations.EventData]:
intervals.append([float(line[0]), float(line[1])])
annotation.append(line[2])

# there are several annotation types in annotations.py
# They should be initialized with data, followed by their units
# see annotations.py for a complete list of types and units.
annotation_data = annotations.EventData(
np.array(intervals), np.array(annotation)
np.array(intervals), "s", np.array(annotation), "open"
)
return annotation_data

Expand Down
3 changes: 2 additions & 1 deletion docs/source/table.rst
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@
* - cante100
- - audio: 🔑
- annotations: ✅
- :ref:`f0`
- - :ref:`f0`
- Vocal :ref:`notes`
- 100
- :cante:`\ `

Expand Down
Loading

0 comments on commit 36eeec5

Please sign in to comment.