Coder Social home page Coder Social logo

filelingr's Introduction

This archive has scripts for working with linguistic fieldwork archival collections. It is a set of checks for files. It is meant mostly for fieldworkers who already have documentation collections and want to check what is in the folders, what's missing, or what's inconsistent in file naming conventions.

We are very happy to collaborate! And we'd like to know about features that would be useful.

To use the scripts, you need R and RStudio (both free). R can be downloaded from r-project.org (a list of mirrors is [here][https://cran.r-project.org/mirrors.html]). RStudio can be downloaded [here][https://www.rstudio.com/products/rstudio/]. Clone or download this repository, open the checkR.rmd file, and follow the instructions to install the required packages and tell the checkR script which directory you want to analyse.

filelingr's People

Contributors

chirila avatar

Stargazers

Dr. Hunter Thompson Lockwood avatar  avatar

Watchers

James Cloos avatar  avatar  avatar  avatar

filelingr's Issues

audio stats

table with

filename
filetype (.wav, mp3, etc)
sampling rate
length (mins, secs)
does .eaf file with same name exist?
does .textgrid with same name exist?
does .txt with same name exist?

textgrids

TextGrid vs textgrid
other things needed?

mfa and p2fa

two forced alignment algorithms produce two tiers. p2fa has phone is tier 1 and word as tier 2. For mfa, it's the opposite.

check for characters in files

parse list of characters (in particular field?), return non-ascii chars?
Mostly needed for legacy files that have been through multiple conversions, probably not needed for new data

Are there empty directories?

# Load the required package
library(fs)

# Specify the paths to the directories to check (don't do this, load it from the list of directories already loaded)
dir_paths <- c("path/to/dir1", "path/to/dir2", "path/to/dir3")

# Create a vector to store the empty directories
empty_dirs <- vector("character", length(dir_paths))

# Loop over the directory paths
for (i in seq_along(dir_paths)) {
  # Check if the directory is empty
  if (is_empty(dir_paths[i])) {
    # If the directory is empty, add it to the list of empty directories
    empty_dirs[i] <- dir_paths[i]
  }
}

# Remove any NULL values from the list of empty directories
empty_dirs <- empty_dirs[!is.null(empty_dirs)]

# Print the list of empty directories
print(empty_dirs)

review filetypes

check other collections for other common filetypes (apart from elan etc)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.