You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
boB Rudis 4e6773c526
cleaned up tests
6 months ago
R initial commit and working 6 months ago
inst cleaned up tests 6 months ago
lib forgot to get rid of 2 uselss things in init.c 6 months ago
man initial commit and working 6 months ago
src auto-gen init.c 6 months ago
tests R package repo initialization complete 6 months ago
.Rbuildignore initial commit and working 6 months ago
.codecov.yml R package repo initialization complete 6 months ago
.gitignore R package repo initialization complete 6 months ago
.travis.yml R package repo initialization complete 6 months ago
CONDUCT.md R package repo initialization complete 6 months ago
DESCRIPTION auto-gen init.c 6 months ago
LICENSE initial commit and working 6 months ago
LICENSE.md initial commit and working 6 months ago
NAMESPACE initial commit and working 6 months ago
NEWS.md R package repo initialization complete 6 months ago
README.Rmd cleaned up README 6 months ago
README.md cleaned up README 6 months ago
swiftspeech.Rproj R package repo initialization complete 6 months ago

README.md

Project Status: Active – The project has reached a stable, usablestate and is being activelydeveloped. Signedby Signed commit% Linux buildStatus
Minimal RVersion 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:

  • parts_of_speech: Parts of speech

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.