NLP for Java (NLP4J) (1)

We are planning to release "a library that allows you to easily try natural language processing" in the near future.

If you write a code like this


	public static void main(String[] args) throws IOException {
		String text = "I ran to school today.";
		YJpMaService service = new YJpMaService();
		ArrayList<Keyword> kwds = service.getKeywords(text);
		for (Keyword kwd : kwds) {
			System.out.println(kwd);
		}
	}

It is output like this.

Keyword [facet=noun, lex=today, str=today, reading=Today]
Keyword [facet=Particle, lex=Is, str=Is, reading=Is]
Keyword [facet=verb, lex=Run, str=Run, reading=Hashi]
Keyword [facet=Particle, lex=hand, str=hand, reading=hand]
Keyword [facet=noun, lex=school, str=school, reading=Gakkou]
Keyword [facet=Particle, lex=To, str=To, reading=To]
Keyword [facet=verb, lex=go, str=To go, reading=breath]
Keyword [facet=Auxiliary verb, lex=Masu, str=Better, reading=Better]
Keyword [facet=Auxiliary verb, lex=Ta, str=Ta, reading=Ta]
Keyword [facet=Special, lex=。, str=。, reading=。]

In this example, the Japanese morphological analysis service of Yahoo! Japan is called behind the scenes. → https://developer.yahoo.co.jp/webapi/jlp/ma/v1/parse.html We are planning to call other natural language processing services in a unified way and provide a mechanism to create our own natural language processing.

Natural language processing is quite fun, but when I try to do it with programming (Java!), Calling a process or processing a response can be quite troublesome.

So, personally, when I made an open source version of the mechanism that I have used for many years, the threshold for natural language processing went down, for example, university students tried using it for a little study, or used it as a starting point in a university laboratory. I'm thinking that it will be something that can be seen.

I'm preparing the code as a do-it-yourselfer.

that's all.

Recommended Posts

NLP for Java (NLP4J) (2)
NLP for Java (NLP4J) (1)
For JAVA learning (2018-03-16-01)
2017 IDE for Java
Java for statement
[Java] for statement, while statement
[Java] Package for management
[Java] for statement / extended for statement
Countermeasures for Java OutOfMemoryError
(Memo) Java for statement
Java update for Scala users
Java debug execution [for Java beginners]
[Java] Basic statement for beginners
[Java] Precautions for type conversion
Books used for learning Java
2018 Java Proficiency Test for Newcomers-Basics-
Java thread safe for you
[Java] Summary of for statements
Java for beginners, data hiding
[Java] Tips for writing source
Java installation location for mac
Java application for beginners: stream
Java while and for statements
C # cheat sheet for Java engineers
New grammar for Java 12 Switch statements
AWS SDK for Java 1.11.x and 2.x
[Java] Memo for naming class names
Hello World for ImageJ Java Plugin
[OpenCV3.2.0] Eclipse (Java) settings (for Mac)
Enable OpenCV with java8. (For myself)
Spring Framework tools for Java developer
Build Java development environment (for Mac)
Java
[Java & SpringBoot] Environment Construction for Mac
Settings for SSL debugging in Java
Generics of Kotlin for Java developers
Java
Diary for Java SE 8 Silver qualification
[For Java beginners] About exception handling
Classes and instances Java for beginners
Modern best practices for Java testing
GraalVM for Java Performance (Windows Developer Build)
Implementation of clone method for Java Record
[Until March 5, 2020] Renew RDS certificate for java
Getting Started with Ruby for Java Engineers
[Java Spring MVC] Controller for development confirmation
Memory measurement for Java apps using jstat
Java for All! I read everyone's Java #minjava
I tried Cassandra's Object Mapper for Java
Key points for introducing gRPC in Java
Learn Java with "So What" [For beginners]
About the procedure for java to work
[Java + jsoup] Scraping Mercari's products for sale
[Java] for Each and sorted in Lambda
[For beginners] Difference between Java and Kotlin
Sample code collection for Azure Java development
Java Programming Style Guide for the Java 11 Era
2018 Java Recommended library for easily creating microservices
List of download destinations for oracle java
Convenient plugin for Eclipse JAVA development: Decompiler
Learning for the first time java [Introduction]