aggregate.rating: aggregation of annnotations data

Description Usage Arguments Details Value Examples

View source: R/aggregate_rating.R

Description

Base on the result of an find.ratting.segment return or similar data.frame the function will extract data from annotation file in a raterData Class

Usage

1
2
3
4
5
6
7
8
9
## S3 method for class 'rating'
aggregate(
  data,
  ChildRecordings,
  cut = 100,
  verbose = FALSE,
  use_data_table = FALSE,
  threads = 1
)

Arguments

data

: find.ratting.segment return or similar data.frame

ChildRecordings

: a ChildRecordings class

cut

: time size in millisecond for the unit segment

verbose

: if TRUE information will be printed out in the console

use_data_table

: use the data.table package to read the .csv annotation data (depending on the operating system and the number of threads used it can be 3 to 5 times faster than 'read.csv')

threads

the number of threads to run in parallel

Details

the data will be organize un raw annotation format and a long segmented format

Value

A raterData class containing with original format and long format for every annotators.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
## Not run: 

library(ChildRecordsR)
path = "/mnt/94707AA4707A8CAC/CNRS/corpus/vandam-daylong-demo"
CR = ChildRecordings(path)

# if no time windows is specified, this function will only return at table for all the know raters
# All the rater need to ratter any segment find

search = find.rating.segment(CR, "BN32_010007.mp3")
rez = aggregate.rating(search, CR, cut=100, verbose=T, use_data_table = TRUE, threads = 2)


## End(Not run)

LAAC-LSCP/ChildRecordsR documentation built on July 26, 2021, 3:25 p.m.