NEologd preprocessing in Java neologdn-java

Ciao ... †

With the help of @ragion, we have finally released NEologd's preprocessing module neologd-java in Java!

What is this?

https://github.com/neologd/mecab-ipadic-neologd/wiki/Regexp.ja

There is a limit to making dictionary data redundant and absorbing different notations. When generating dictionary data, all the normalization processing described below is applied, so if the following normalization processing is applied to the text to be analyzed, it will be easier to match the words in the dictionary.

As you can see on the above page, it is important to perform normalization (preprocessing) before parsing with MeCab. Therefore, I created neologd-java, a preprocessing module for NEologd in Java.

How do you use it?

For Maven

Since it is registered in Maven Central, add the following to pom.xml.

    <dependency>
      <groupId>io.github.ikegami-yukino</groupId>
      <artifactId>neologdn</artifactId>
      <version>0.0.1</version>
    </dependency>

And

package yukinoi.neologdn_example;
import io.github.ikegamiyukino.neologdn.NeologdNormalizer;


/**
 * neologdn-example
 *
 */
public class App
{
    public static void main(String[] args)
    {
        NeologdNormalizer normalizer = new NeologdNormalizer();
        String text = "PRML supplementary reading book";
        String normalizedText = normalizer.normalize(text);
        System.out.println(normalizedText);
    }
}

Use like.

I want to Contribute!

I am developing with the following GitHub repository. https://github.com/ikegami-yukino/neologdn-java

Contributions are welcome!

Recommended Posts

NEologd preprocessing in Java neologdn-java
Partization in Java
Changes in Java 11
Rock-paper-scissors in Java
Pi in Java
FizzBuzz in Java
Interpreter implementation in Java
Make Blackjack in Java
Rock-paper-scissors app in Java
Constraint programming in Java
Put java8 in centos7
NVL-ish guy in Java
"Hello World" in Java
Callable Interface in Java
Comments in Java source
Azure functions in java
Format XML in Java
Simple htmlspecialchars in Java
Boyer-Moore implementation in Java
Hello World in Java
Use OpenCV in Java
webApi memorandum in java
Type determination in Java
Ping commands in Java
Various threads in java
Heapsort implementation (in java)
Zabbix API in Java
ASCII art in Java
Compare Lists in Java
POST JSON in Java
Express failure in Java
Create JSON in Java
Date manipulation in Java 8
What's new in Java 8
Use PreparedStatement in Java
What's new in Java 9,10,11
Parallel execution in Java
Initializing HashMap in Java
Try using RocksDB in Java
Read binary files in Java 1
Avoid Yubaba's error in Java
Get EXIF information in Java
Save Java PDF in Excel
[Neta] Sleep Sort in Java
Edit ini in Java: ini4j
Java history in this world
Let Java segfault in 6 lines
Try developing Spresense in Java (1)
Try functional type in Java! ①
I made roulette in Java.
Create hyperlinks in Java PowerPoint
Implement two-step verification in Java
Write flyway callbacks in Java
Importing Excel data in Java 2
Change java encoding in windows
Java Stream API in 5 minutes
Cannot find javax.annotation.Generated in Java 11
Read standard input in Java
Implement Basic authentication in Java
Perl's grep-ish guy in Java
Find a subset in Java