Skip to content

ntc-visd is a tool Vietnamese Sentence Detector using Apache OpenNLP

License

Notifications You must be signed in to change notification settings

congnghia0609/ntc-visd

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ntc-visd

ntc-visd is a library Vietnamese Sentence Detector using Apache OpenNLP

Maven

<dependency>
    <groupId>com.streetcodevn</groupId>
    <artifactId>ntc-visd</artifactId>
    <version>1.0.0</version>
</dependency>

Build local

# Build
mvn package
or
mvn -Dmaven.test.skip=true package

# Clean
mvn clean install

Quick start

ViSD visd = new ViSD();
String s = "Đây là câu 1. Đây là câu 2. Đây là câu 3.";

// Sentence Detector
List<String> sents = visd.visd2List(s);
System.out.println(sents);

// or

String[] sents = visd.visd(s);
System.out.println(sents);

License

This code is under the Apache License v2.

About

ntc-visd is a tool Vietnamese Sentence Detector using Apache OpenNLP

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages