Skip to content

Instantly share code, notes, and snippets.

@Sajjon
Created August 15, 2020 13:47
Show Gist options
  • Select an option

  • Save Sajjon/7e99f865eeefbcfb8625e72efdfb266d to your computer and use it in GitHub Desktop.

Select an option

Save Sajjon/7e99f865eeefbcfb8625e72efdfb266d to your computer and use it in GitHub Desktop.
A parsed line from the Swedish corpus at Språkbanken.
/// A parsed line from some scanned line in the corpus.
struct ParsedLine: Codable, Hashable {
let wordForm: WordForm
let partOfSpeechTag: PartOfSpeech
let lemgrams: Lemgrams
let isCompoundWord: Bool
let numberOfOccurencesInCorpus: Int
let relativeFrequencyPerOneMillion: Int
let indexOfLineInCorpus: Int
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment