WordNetDecoder

0.0.2

A Swift decoder for WordNets.
wacumov/WordNetDecoder

What's New

0.0.2

2020-07-20T19:33:11Z

WordNetDecoder

Status Swift 5.2 Swift Package Mac & Linux

A Swift decoder for WordNets. Basically, it's just a set of models that matches the schema. All the hard work of XML parsing is doing by this package.

Installation

Swift Package Manager

Swift Package Manager is a tool for managing the distribution of Swift code. Once you have your Swift package set up, adding WordNetDecoder as a dependency is as easy as adding it to the dependencies value of your Package.swift.

dependencies: [
    .package(url: "https://github.com/wacumov/WordNetDecoder", from: "0.0.2")
]

Usage

Just read contents of a wordnet file in XML format and pass it to a WordNetXMLDecoder. You will get Codable models that are convenient to work with.

let wordnet = try WordNetXMLDecoder().decode(data)

Description

  • Swift Tools 5.2.0
View More Packages from this Author

Dependencies

Last updated: Mon Oct 21 2024 16:02:08 GMT-0900 (Hawaii-Aleutian Daylight Time)