Module: Spacy

Defined in:
lib/ruby-spacy.rb,
lib/ruby-spacy/version.rb

Overview

This module covers the areas of spaCy functionality for using many varieties of its language models, not for building ones.

Defined Under Namespace

Classes: Doc, Language, Matcher, Span, Token

Constant Summary collapse

VERSION =

The version number of the module

"0.1.1"

Class Method Summary collapse

Class Method Details

.generator_to_array(py_generator) ⇒ Object

A utility module method to convert Python's generator object to a Ruby array, mainly used on the items inside the array returned from dependency-related methods such as Spacy::Span#rights, Spacy::Span#lefts and Spacy::Span#subtree.



15
16
17
# File 'lib/ruby-spacy.rb', line 15

def self.generator_to_array(py_generator)
  PyCall::List.(py_generator)
end