Skip to content

Latest commit

 

History

History
31 lines (23 loc) · 1.13 KB

README.md

File metadata and controls

31 lines (23 loc) · 1.13 KB

Stanford NLP Pipeline

This Java class, Pipeline, provides a configuration setup for the Stanford CoreNLP library to facilitate Natural Language Processing (NLP) tasks. It initializes a pipeline with specific annotators to perform various NLP operations on textual data.

About

The Pipeline class is designed to create an instance of Stanford CoreNLP with the following annotators:

  • Tokenization
  • Sentence splitting
  • Part-of-Speech tagging (POS)
  • Lemmatization
  • Named Entity Recognition (NER)
  • Parsing
  • Sentiment analysis

Usage

To utilize this pipeline:

  1. Ensure you have the Stanford CoreNLP library configured in your project.

  2. Add Stanford CoreNLP as a dependency. You can do this by including the following Maven dependency in your project's pom.xml file:

     <dependency>
         <groupId>edu.stanford.nlp</groupId>
         <artifactId>stanford-corenlp</artifactId>
         <version>4.5.5</version>
         <classifier>models</classifier>
     </dependency>
    
  3. Import the Pipeline class into your Java application.

  4. Access the pipeline instance using the getPipeline() method to perform NLP tasks.