README.md

Project Status: Active – The project has reached a stable, usable
state and is being actively
developed. Signed
by Signed commit
% Linux build
Status Minimal R
Version License

swiftspeech

Classify Parts of Speech Using Apple’s CoreML and NaturalLanguage Libraries

Description

Classify Parts of Speech Using Apple’s CoreML and NaturalLanguage Libraries.

What’s Inside The Tin

The following functions are implemented:

Installation

NOTE: This requires {swiftr}.

remotes::install_git("https://git.rud.is/hrbrmstr/swiftspeech.git")
# or
remotes::install_gitlab("hrbrmstr/swiftspeech")
# or
remotes::install_bitbucket("hrbrmstr/swiftspeech")
# or
remotes::install_github("hrbrmstr/swiftspeech")

NOTE: To use the ‘remotes’ install options you will need to have the {remotes} package installed.

Usage

library(swiftspeech)

# current version
packageVersion("swiftspeech")
## [1] '0.1.0'
tibble::as_tibble(parts_of_speech(paste0(c(
  "The comm wasn't working. Feeling increasingly ridiculous, he pushed",
  "the button for the 1MC channel several more times. Nothing. He opened",
  "his eyes and saw that all the lights on the panel were out. Then he",
  "turned around and saw that the lights on the refrigerator and the",
  "ovens were out. It wasn’t just the coffeemaker; the entire galley was",
  "in open revolt. Holden looked at the ship name, Rocinante, newly",
  "stenciled onto the galley wall, and said, Baby, why do you hurt me",
  "when I love you so much?"
), collapse = " ")))
## # A tibble: 92 x 2
##    name         tag       
##    <chr>        <chr>     
##  1 The          Determiner
##  2 comm         Noun      
##  3 was          Verb      
##  4 n't          Adverb    
##  5 working      Verb      
##  6 Feeling      Verb      
##  7 increasingly Adverb    
##  8 ridiculous   Adjective 
##  9 he           Pronoun   
## 10 pushed       Verb      
## # … with 82 more rows

swiftspeech Metrics

| Lang | # Files | (%) | LoC | (%) | Blank lines | (%) | # Lines | (%) | |:-------------|---------:|-----:|----:|-----:|------------:|-----:|---------:|-----:| | Swift | 1 | 0.07 | 31 | 0.21 | 9 | 0.13 | 0 | 0.00 | | Rmd | 1 | 0.07 | 18 | 0.12 | 17 | 0.25 | 31 | 0.32 | | C | 1 | 0.07 | 13 | 0.09 | 4 | 0.06 | 1 | 0.01 | | R | 3 | 0.21 | 8 | 0.05 | 2 | 0.03 | 16 | 0.17 | | C/C++ Header | 1 | 0.07 | 4 | 0.03 | 2 | 0.03 | 0 | 0.00 | | SUM | 7 | 0.50 | 74 | 0.50 | 34 | 0.50 | 48 | 0.50 |

clock Package Metrics for swiftspeech

Code of Conduct

Please note that this project is released with a Contributor Code of Conduct. By participating in this project you agree to abide by its terms.



hrbrmstr/swiftspeech documentation built on Jan. 25, 2021, 12:35 a.m.