Universe

spacy-cpp

C++ wrapper library for spaCy

The goal of spacy-cpp is to expose the functionality of spaCy to C++ applications, and to provide an API that is similar to that of spaCy, enabling rapid development in Python and simple porting to C++.

Example

Spacy::Spacy spacy; auto nlp = spacy.load("en_core_web_sm"); auto doc = nlp.parse("This is a sentence."); for (auto& token : doc.tokens()) std::cout << token.text() << " [" << token.pos_() << "]\n";
Author info

Kristofer Berggren

GitHubd99kris/spacy-cpp

Categories nonpython

Submit your project

If you have a project that you want the spaCy community to make use of, you can suggest it by submitting a pull request to the spaCy website repository. The Universe database is open-source and collected in a simple JSON file. For more details on the formats and available fields, see the documentation. Looking for inspiration your own spaCy plugin or extension? Check out the project idea label on the issue tracker.

Read the docsJSON source