Skip to content

Instantly share code, notes, and snippets.

@juananpe
Created January 5, 2020 16:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save juananpe/2405f026e8aa5f7b6b91fd1c70e1ea95 to your computer and use it in GitHub Desktop.
Save juananpe/2405f026e8aa5f7b6b91fd1c70e1ea95 to your computer and use it in GitHub Desktop.
Euskarazko testuen hizkien maiztasuna kalkulatzeko R script-a
singleString <- paste(readLines("euwiki/wikipedia-extractor/garbia.xml"), collapse=" ")
table(strsplit(tolower(gsub("[^[:alpha:]]", "", singleString )), ""))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment