Swiftpack.co - wacumov/WordNetDecoder as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by wacumov.
wacumov/WordNetDecoder 0.0.2
A Swift decoder for WordNets.
⭐️ 2
🕓 1 year ago
.package(url: "https://github.com/wacumov/WordNetDecoder.git", from: "0.0.2")

WordNetDecoder

Status

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)

GitHub

link
Stars: 2
Last commit: 1 year ago
Advertisement: IndiePitcher.com - Cold Email Software for Startups

Release Notes

0.0.2
3 years ago

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics