module Spacy

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

Constants

PyDisplacy

Python `displacy` object

PyDoc

Python `Doc` class object

PyLanguage

Python `Language` class

PyMatcher

Python `Matcher` class object

PySpan

Python `Span` class object

PyToken

Python `Token` class object

VERSION

The version number of the module

Public Class Methods

generator_to_array(py_generator) click to toggle source

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 {Span#rights}, {Span#lefts} and {Span#subtree}.

# File lib/ruby-spacy.rb, line 37
def self.generator_to_array(py_generator)
  PyCall::List.(py_generator)
end