[JAVA] NLP4J [006-030] 100 language processing knocks with NLP4J # 30 Reading morphological analysis results

Return to Index

I'll try.

30. Reading morphological analysis results

Implement a program that reads the morphological analysis result (neko.txt.mecab).

Maven

Use the version currently under development.

<dependency>
	<groupId>org.nlp4j</groupId>
	<artifactId>nlp4j-core</artifactId>
	<version>1.1.1.0-SNAPSHOT</version>
</dependency>

Text Data

In the morphological analysis used by default (Yahoo! Japan Developer Network Japanese morphological analysis), the upper limit of the request size is 900KB, and the number of times is limited, so a small text file is used.

one

I am a cat.
There is no name yet.

I have no idea where I was born.
I remember only crying in a dim and damp place.
I saw human beings for the first time here.
Moreover, I heard later that it was the most evil race of human beings called Shosei.
This student is a story that sometimes catches us and boiled and eats.
However, I didn't think anything at that time, so I didn't think it was particularly scary.
It just felt fluffy when it was placed on his palm and lifted up.
It is probably the beginning of what is called a human being that he calms down a little on his palm and sees the student's face.
The feeling that I thought was strange at this time still remains.
The face, which should be decorated with the first hair, is slippery and looks like a kettle.
After that, I met a cat a lot, but I have never met such a single wheel.
Not only that, the center of the face is too protruding.
Then I sometimes blow smoke from the hole.
It was so throaty that I was really weak.
It was around this time that I finally learned that this is a cigarette that humans drink.


Java Code

package nlp4j.nokku.chap4;
import java.util.List;
import nlp4j.Document;
import nlp4j.DocumentAnnotator;
import nlp4j.DocumentAnnotatorPipeline;
import nlp4j.Keyword;
import nlp4j.crawler.Crawler;
import nlp4j.crawler.TextFileLineSeparatedCrawler;
import nlp4j.impl.DefaultDocumentAnnotatorPipeline;
import nlp4j.yhoo_jp.YJpMaAnnotator;

public class Nokku30 {
	public static void main(String[] args) throws Exception {
		//Use the text file crawler provided by NLP4J
		Crawler crawler = new TextFileLineSeparatedCrawler();
		crawler.setProperty("file", "src/test/resources/nlp4j.crawler/neko_short_utf8.txt");
		crawler.setProperty("encoding", "UTF-8");
		crawler.setProperty("target", "text");

		//Document crawl
		List<Document> docs = crawler.crawlDocuments();

		//Definition of NLP pipeline (process by connecting multiple processes as a pipeline)
		DocumentAnnotatorPipeline pipeline = new DefaultDocumentAnnotatorPipeline();
		{
			// Yahoo!Annotator using Japan's morphological analysis API
			DocumentAnnotator annotator = new YJpMaAnnotator();
			pipeline.add(annotator);
		}
		//Execution of annotation processing
		pipeline.annotate(docs);
		for (Document doc : docs) {
			//Text
			System.err.println(doc.getText());
			for (Keyword kwd : doc.getKeywords()) {
				System.err.println(" - " + kwd.toString());
			}
		}
	}
}

result

one
 - 1 [sequence=1, facet=noun, lex=1, str=one, reading=1, count=-1, begin=0, end=1, correlation=0.0]

I am a cat.
 -   [sequence=1, facet=Special, lex= , str= , reading= , count=-1, begin=0, end=1, correlation=0.0]
 -I am a cat[sequence=2, facet=noun, lex=I am a cat, str=I am a cat, reading=My yes is a cat, count=-1, begin=1, end=8, correlation=0.0]
 - 。 [sequence=3, facet=Special, lex=。, str=。, reading=。, count=-1, begin=8, end=9, correlation=0.0]
There is no name yet.
 -name[sequence=1, facet=noun, lex=name, str=name, reading=Name, count=-1, begin=0, end=2, correlation=0.0]
 -Is[sequence=2, facet=Particle, lex=Is, str=Is, reading=Is, count=-1, begin=2, end=3, correlation=0.0]
 -yet[sequence=3, facet=adverb, lex=yet, str=yet, reading=yet, count=-1, begin=3, end=5, correlation=0.0]
 -No[sequence=4, facet=adjective, lex=No, str=No, reading=Absent, count=-1, begin=5, end=7, correlation=0.0]
 - 。 [sequence=5, facet=Special, lex=。, str=。, reading=。, count=-1, begin=7, end=8, correlation=0.0]

I have no idea where I was born.
 -   [sequence=1, facet=Special, lex= , str= , reading= , count=-1, begin=0, end=1, correlation=0.0]
 -Where[sequence=2, facet=noun, lex=Where, str=Where, reading=Where, count=-1, begin=1, end=3, correlation=0.0]
 -so[sequence=3, facet=Particle, lex=so, str=so, reading=so, count=-1, begin=3, end=4, correlation=0.0]
 -Born[sequence=4, facet=verb, lex=Born, str=Born, reading=Born, count=-1, begin=4, end=6, correlation=0.0]
 -Ta[sequence=5, facet=Auxiliary verb, lex=Ta, str=Ta, reading=Ta, count=-1, begin=6, end=7, correlation=0.0]
 -Or[sequence=6, facet=Particle, lex=Or, str=Or, reading=Or, count=-1, begin=7, end=8, correlation=0.0]
 -Tonto[sequence=7, facet=adverb, lex=Tonto, str=Tonto, reading=Tonto, count=-1, begin=8, end=11, correlation=0.0]
 -Register[sequence=8, facet=noun, lex=Register, str=Register, reading=Kento, count=-1, begin=11, end=13, correlation=0.0]
 -But[sequence=9, facet=Particle, lex=But, str=But, reading=But, count=-1, begin=13, end=14, correlation=0.0]
 -Tsukuri[sequence=10, facet=verb, lex=Tsukuri, str=Tsuka, reading=Tsuka, count=-1, begin=14, end=16, correlation=0.0]
 -Nu[sequence=11, facet=Auxiliary verb, lex=Nu, str=Nu, reading=Nu, count=-1, begin=16, end=17, correlation=0.0]
 - 。 [sequence=12, facet=Special, lex=。, str=。, reading=。, count=-1, begin=17, end=18, correlation=0.0]
I remember only crying in a dim and damp place.
 -anything[sequence=1, facet=adverb, lex=anything, str=anything, reading=anything, count=-1, begin=0, end=3, correlation=0.0]
 -dim[sequence=2, facet=adjective, lex=dim, str=dim, reading=About thin, count=-1, begin=3, end=6, correlation=0.0]
 -Damp[sequence=3, facet=adverb, lex=Damp, str=Damp, reading=Damp, count=-1, begin=6, end=10, correlation=0.0]
 -To do[sequence=4, facet=verb, lex=To do, str=Shi, reading=Shi, count=-1, begin=10, end=11, correlation=0.0]
 -Ta[sequence=5, facet=Auxiliary verb, lex=Ta, str=Ta, reading=Ta, count=-1, begin=11, end=12, correlation=0.0]
 -Place[sequence=6, facet=noun, lex=Place, str=Place, reading=By the way, count=-1, begin=12, end=13, correlation=0.0]
 -so[sequence=7, facet=Particle, lex=so, str=so, reading=so, count=-1, begin=13, end=14, correlation=0.0]
 -Meow meow[sequence=8, facet=adverb, lex=Meow meow, str=Meow meow, reading=Nya Nya, count=-1, begin=14, end=20, correlation=0.0]
 -cry[sequence=9, facet=verb, lex=cry, str=Crying, reading=Absent, count=-1, begin=20, end=22, correlation=0.0]
 -hand[sequence=10, facet=Particle, lex=hand, str=hand, reading=hand, count=-1, begin=22, end=23, correlation=0.0]
 -Is[sequence=11, facet=Auxiliary verb, lex=Is, str=I, reading=I, count=-1, begin=23, end=24, correlation=0.0]
 -Ta[sequence=12, facet=Auxiliary verb, lex=Ta, str=Ta, reading=Ta, count=-1, begin=24, end=25, correlation=0.0]
 -Thing[sequence=13, facet=noun, lex=Thing, str=Thing, reading=thing, count=-1, begin=25, end=26, correlation=0.0]
 -Only[sequence=14, facet=Particle, lex=Only, str=Only, reading=Only, count=-1, begin=26, end=28, correlation=0.0]
 -Is[sequence=15, facet=Particle, lex=Is, str=Is, reading=Is, count=-1, begin=28, end=29, correlation=0.0]
 -Memory[sequence=16, facet=noun, lex=Memory, str=Memory, reading=Kioku, count=-1, begin=29, end=31, correlation=0.0]
 -To do[sequence=17, facet=Auxiliary verb, lex=To do, str=Shi, reading=Shi, count=-1, begin=31, end=32, correlation=0.0]
 -hand[sequence=18, facet=Particle, lex=hand, str=hand, reading=hand, count=-1, begin=32, end=33, correlation=0.0]
 -Is[sequence=19, facet=Auxiliary verb, lex=Is, str=Is, reading=Is, count=-1, begin=33, end=35, correlation=0.0]
 - 。 [sequence=20, facet=Special, lex=。, str=。, reading=。, count=-1, begin=35, end=36, correlation=0.0]
I saw human beings for the first time here.
 -I[sequence=1, facet=noun, lex=I, str=I, reading=My yes, count=-1, begin=0, end=2, correlation=0.0]
 -Is[sequence=2, facet=Particle, lex=Is, str=Is, reading=Is, count=-1, begin=2, end=3, correlation=0.0]
 -here[sequence=3, facet=noun, lex=here, str=here, reading=here, count=-1, begin=3, end=5, correlation=0.0]
 -so[sequence=4, facet=Particle, lex=so, str=so, reading=so, count=-1, begin=5, end=6, correlation=0.0]
 -start[sequence=5, facet=verb, lex=start, str=start, reading=Begin, count=-1, begin=6, end=8, correlation=0.0]
 -hand[sequence=6, facet=Particle, lex=hand, str=hand, reading=hand, count=-1, begin=8, end=9, correlation=0.0]
 -Human[sequence=7, facet=noun, lex=Human, str=Human, reading=Human, count=-1, begin=9, end=11, correlation=0.0]
 -When[sequence=8, facet=Particle, lex=When, str=When, reading=When, count=-1, begin=11, end=12, correlation=0.0]
 -Say[sequence=9, facet=verb, lex=Say, str=Say, reading=Say, count=-1, begin=12, end=14, correlation=0.0]
 -thing[sequence=10, facet=noun, lex=thing, str=thing, reading=thing, count=-1, begin=14, end=16, correlation=0.0]
 -To[sequence=11, facet=Particle, lex=To, str=To, reading=To, count=-1, begin=16, end=17, correlation=0.0]
 -to see[sequence=12, facet=verb, lex=to see, str=You see, reading=Mi, count=-1, begin=17, end=18, correlation=0.0]
 -Ta[sequence=13, facet=Auxiliary verb, lex=Ta, str=Ta, reading=Ta, count=-1, begin=18, end=19, correlation=0.0]
 - 。 [sequence=14, facet=Special, lex=。, str=。, reading=。, count=-1, begin=19, end=20, correlation=0.0]
Moreover, I heard later that it was the most evil race of human beings called Shosei.
 -Moreover[sequence=1, facet=conjunction, lex=Moreover, str=Moreover, reading=Moreover, count=-1, begin=0, end=3, correlation=0.0]
 -after[sequence=2, facet=noun, lex=after, str=after, reading=after, count=-1, begin=3, end=5, correlation=0.0]
 -so[sequence=3, facet=Particle, lex=so, str=so, reading=so, count=-1, begin=5, end=6, correlation=0.0]
 -listen[sequence=4, facet=verb, lex=listen, str=listen, reading=listen, count=-1, begin=6, end=8, correlation=0.0]
 -When[sequence=5, facet=Particle, lex=When, str=When, reading=When, count=-1, begin=8, end=9, correlation=0.0]
 -It[sequence=6, facet=noun, lex=It, str=It, reading=It, count=-1, begin=9, end=11, correlation=0.0]
 -Is[sequence=7, facet=Particle, lex=Is, str=Is, reading=Is, count=-1, begin=11, end=12, correlation=0.0]
 -Student[sequence=8, facet=noun, lex=Student, str=Student, reading=Shosei, count=-1, begin=12, end=14, correlation=0.0]
 -When[sequence=9, facet=Particle, lex=When, str=When, reading=When, count=-1, begin=14, end=15, correlation=0.0]
 -Say[sequence=10, facet=verb, lex=Say, str=Say, reading=Say, count=-1, begin=15, end=17, correlation=0.0]
 -Human[sequence=11, facet=noun, lex=Human, str=Human, reading=Human, count=-1, begin=17, end=19, correlation=0.0]
 -During ~[sequence=12, facet=Suffix, lex=During ~, str=During ~, reading=Chu, count=-1, begin=19, end=20, correlation=0.0]
 -so[sequence=13, facet=Particle, lex=so, str=so, reading=so, count=-1, begin=20, end=21, correlation=0.0]
 -Ichiban[sequence=14, facet=adverb, lex=Ichiban, str=Ichiban, reading=most, count=-1, begin=21, end=23, correlation=0.0]
 -Evil[sequence=15, facet=noun, lex=Evil, str=Evil, reading=How, count=-1, begin=23, end=25, correlation=0.0]
 -Is[sequence=16, facet=Auxiliary verb, lex=Is, str=Nana, reading=Nana, count=-1, begin=25, end=26, correlation=0.0]
 -Race[sequence=17, facet=noun, lex=Race, str=Race, reading=Shuzoku, count=-1, begin=26, end=28, correlation=0.0]
 -Is[sequence=18, facet=Auxiliary verb, lex=Is, str=so, reading=so, count=-1, begin=28, end=29, correlation=0.0]
 -is there[sequence=19, facet=Auxiliary verb, lex=is there, str=Ah, reading=Ah, count=-1, begin=29, end=31, correlation=0.0]
 -Ta[sequence=20, facet=Auxiliary verb, lex=Ta, str=Ta, reading=Ta, count=-1, begin=31, end=32, correlation=0.0]
 -so[sequence=21, facet=Particle, lex=so, str=so, reading=so, count=-1, begin=32, end=34, correlation=0.0]
 -Is[sequence=22, facet=Auxiliary verb, lex=Is, str=Is, reading=Is, count=-1, begin=34, end=35, correlation=0.0]
 - 。 [sequence=23, facet=Special, lex=。, str=。, reading=。, count=-1, begin=35, end=36, correlation=0.0]
This student is a story that sometimes catches us and boiled and eats.
 -this[sequence=1, facet=Adnominal adjective, lex=this, str=this, reading=this, count=-1, begin=0, end=2, correlation=0.0]
 -Student[sequence=2, facet=noun, lex=Student, str=Student, reading=Shosei, count=-1, begin=2, end=4, correlation=0.0]
 -When[sequence=3, facet=Particle, lex=When, str=When, reading=When, count=-1, begin=4, end=5, correlation=0.0]
 -Say[sequence=4, facet=verb, lex=Say, str=Say, reading=Say, count=-1, begin=5, end=7, correlation=0.0]
 -of[sequence=5, facet=Particle, lex=of, str=of, reading=of, count=-1, begin=7, end=8, correlation=0.0]
 -Is[sequence=6, facet=Particle, lex=Is, str=Is, reading=Is, count=-1, begin=8, end=9, correlation=0.0]
 -Sometimes[sequence=7, facet=noun, lex=Sometimes, str=Sometimes, reading=Sometimes, count=-1, begin=9, end=11, correlation=0.0]
 -we[sequence=8, facet=noun, lex=we, str=we, reading=We, count=-1, begin=11, end=13, correlation=0.0]
 -To[sequence=9, facet=Particle, lex=To, str=To, reading=To, count=-1, begin=13, end=14, correlation=0.0]
 -capture[sequence=10, facet=verb, lex=capture, str=Catch, reading=Capture, count=-1, begin=14, end=16, correlation=0.0]
 -hand[sequence=11, facet=Particle, lex=hand, str=hand, reading=hand, count=-1, begin=16, end=17, correlation=0.0]
 -Boil[sequence=12, facet=verb, lex=Boil, str=Boiled, reading=To, count=-1, begin=17, end=18, correlation=0.0]
 -hand[sequence=13, facet=Particle, lex=hand, str=hand, reading=hand, count=-1, begin=18, end=19, correlation=0.0]
 -Eat[sequence=14, facet=verb, lex=Eat, str=Eat, reading=Kuu, count=-1, begin=19, end=21, correlation=0.0]
 -When[sequence=15, facet=Particle, lex=When, str=When, reading=When, count=-1, begin=21, end=22, correlation=0.0]
 -Say[sequence=16, facet=verb, lex=Say, str=Say, reading=Say, count=-1, begin=22, end=24, correlation=0.0]
 -Talk[sequence=17, facet=noun, lex=Talk, str=Talk, reading=Story, count=-1, begin=24, end=25, correlation=0.0]
 -Is[sequence=18, facet=Auxiliary verb, lex=Is, str=so, reading=so, count=-1, begin=25, end=26, correlation=0.0]
 -is there[sequence=19, facet=Auxiliary verb, lex=is there, str=is there, reading=is there, count=-1, begin=26, end=28, correlation=0.0]
 - 。 [sequence=20, facet=Special, lex=。, str=。, reading=。, count=-1, begin=28, end=29, correlation=0.0]
However, I didn't think anything at that time, so I didn't think it was particularly scary.
 -However[sequence=1, facet=conjunction, lex=However, str=However, reading=However, count=-1, begin=0, end=3, correlation=0.0]
 -That[sequence=2, facet=Adnominal adjective, lex=That, str=That, reading=That, count=-1, begin=3, end=5, correlation=0.0]
 -at that time[sequence=3, facet=noun, lex=at that time, str=at that time, reading=Touji, count=-1, begin=5, end=7, correlation=0.0]
 -Is[sequence=4, facet=Particle, lex=Is, str=Is, reading=Is, count=-1, begin=7, end=8, correlation=0.0]
 -What[sequence=5, facet=Adnominal adjective, lex=What, str=What, reading=What, count=-1, begin=8, end=12, correlation=0.0]
 -Consideration[sequence=6, facet=noun, lex=Consideration, str=Consideration, reading=Thinking, count=-1, begin=12, end=13, correlation=0.0]
 -Also[sequence=7, facet=Particle, lex=Also, str=Also, reading=Also, count=-1, begin=13, end=14, correlation=0.0]
 -Absent[sequence=8, facet=adjective, lex=Absent, str=Not, reading=Not, count=-1, begin=14, end=17, correlation=0.0]
 -Ta[sequence=9, facet=Auxiliary verb, lex=Ta, str=Ta, reading=Ta, count=-1, begin=17, end=18, correlation=0.0]
 -From[sequence=10, facet=Particle, lex=From, str=From, reading=From, count=-1, begin=18, end=20, correlation=0.0]
 -Separately[sequence=11, facet=adverb, lex=Separately, str=Separately, reading=Betsudan, count=-1, begin=20, end=22, correlation=0.0]
 -Scary[sequence=12, facet=adjective, lex=Scary, str=Scary, reading=Smash, count=-1, begin=22, end=24, correlation=0.0]
 -Very[sequence=13, facet=adverb, lex=Very, str=Very, reading=Very, count=-1, begin=24, end=27, correlation=0.0]
 -think[sequence=14, facet=verb, lex=think, str=Thoughts, reading=Omowa, count=-1, begin=27, end=29, correlation=0.0]
 -Absent[sequence=15, facet=Auxiliary verb, lex=Absent, str=Not, reading=Not, count=-1, begin=29, end=32, correlation=0.0]
 -Ta[sequence=16, facet=Auxiliary verb, lex=Ta, str=Ta, reading=Ta, count=-1, begin=32, end=33, correlation=0.0]
 - 。 [sequence=17, facet=Special, lex=。, str=。, reading=。, count=-1, begin=33, end=34, correlation=0.0]
It just felt fluffy when it was placed on his palm and lifted up.
 -However[sequence=1, facet=conjunction, lex=However, str=However, reading=However, count=-1, begin=0, end=2, correlation=0.0]
 -he[sequence=2, facet=noun, lex=he, str=he, reading=He, count=-1, begin=2, end=3, correlation=0.0]
 -of[sequence=3, facet=Particle, lex=of, str=of, reading=of, count=-1, begin=3, end=4, correlation=0.0]
 -palm[sequence=4, facet=noun, lex=palm, str=palm, reading=Tehira, count=-1, begin=4, end=5, correlation=0.0]
 -To[sequence=5, facet=Particle, lex=To, str=To, reading=To, count=-1, begin=5, end=6, correlation=0.0]
 -Put[sequence=6, facet=verb, lex=Put, str=Loading, reading=Nose, count=-1, begin=6, end=8, correlation=0.0]
 -Be[sequence=7, facet=Auxiliary verb, lex=Be, str=Be, reading=Be, count=-1, begin=8, end=10, correlation=0.0]
 -hand[sequence=8, facet=Particle, lex=hand, str=hand, reading=hand, count=-1, begin=10, end=11, correlation=0.0]
 -Sue[sequence=9, facet=noun, lex=Sue, str=Sue, reading=Sue, count=-1, begin=11, end=13, correlation=0.0]
 -When[sequence=10, facet=Particle, lex=When, str=When, reading=When, count=-1, begin=13, end=14, correlation=0.0]
 -lift[sequence=11, facet=verb, lex=lift, str=Lift, reading=Lift up, count=-1, begin=14, end=18, correlation=0.0]
 -Be[sequence=12, facet=Auxiliary verb, lex=Be, str=Be, reading=Be, count=-1, begin=18, end=20, correlation=0.0]
 -Ta[sequence=13, facet=Auxiliary verb, lex=Ta, str=Ta, reading=Ta, count=-1, begin=20, end=21, correlation=0.0]
 -Time[sequence=14, facet=noun, lex=Time, str=Time, reading=When, count=-1, begin=21, end=22, correlation=0.0]
 -somehow[sequence=15, facet=adverb, lex=somehow, str=somehow, reading=what, count=-1, begin=22, end=25, correlation=0.0]
 -Fluffy[sequence=16, facet=adverb, lex=Fluffy, str=Fluffy, reading=fluffy, count=-1, begin=25, end=29, correlation=0.0]
 -To do[sequence=17, facet=verb, lex=To do, str=Shi, reading=Shi, count=-1, begin=29, end=30, correlation=0.0]
 -Ta[sequence=18, facet=Auxiliary verb, lex=Ta, str=Ta, reading=Ta, count=-1, begin=30, end=31, correlation=0.0]
 -Feeling[sequence=19, facet=noun, lex=Feeling, str=Feeling, reading=Kanji, count=-1, begin=31, end=33, correlation=0.0]
 -But[sequence=20, facet=Particle, lex=But, str=But, reading=But, count=-1, begin=33, end=34, correlation=0.0]
 -is there[sequence=21, facet=verb, lex=is there, str=Ah, reading=Ah, count=-1, begin=34, end=36, correlation=0.0]
 -Ta[sequence=22, facet=Auxiliary verb, lex=Ta, str=Ta, reading=Ta, count=-1, begin=36, end=37, correlation=0.0]
 -Just[sequence=23, facet=Particle, lex=Just, str=Just, reading=Just, count=-1, begin=37, end=40, correlation=0.0]
 -Is[sequence=24, facet=Auxiliary verb, lex=Is, str=so, reading=so, count=-1, begin=40, end=41, correlation=0.0]
 -is there[sequence=25, facet=Auxiliary verb, lex=is there, str=is there, reading=is there, count=-1, begin=41, end=43, correlation=0.0]
 - 。 [sequence=26, facet=Special, lex=。, str=。, reading=。, count=-1, begin=43, end=44, correlation=0.0]
It is probably the beginning of what is called a human being that he calms down a little on his palm and sees the student's face.
 -palm[sequence=1, facet=noun, lex=palm, str=palm, reading=Tehira, count=-1, begin=0, end=1, correlation=0.0]
 -of[sequence=2, facet=Particle, lex=of, str=of, reading=of, count=-1, begin=1, end=2, correlation=0.0]
 -Up[sequence=3, facet=noun, lex=Up, str=Up, reading=up, count=-1, begin=2, end=3, correlation=0.0]
 -so[sequence=4, facet=Particle, lex=so, str=so, reading=so, count=-1, begin=3, end=4, correlation=0.0]
 -a little[sequence=5, facet=noun, lex=a little, str=a little, reading=A little, count=-1, begin=4, end=6, correlation=0.0]
 -Calm down[sequence=6, facet=verb, lex=Calm down, str=Calm down, reading=Calm down, count=-1, begin=6, end=10, correlation=0.0]
 -hand[sequence=7, facet=Particle, lex=hand, str=hand, reading=hand, count=-1, begin=10, end=11, correlation=0.0]
 -Student[sequence=8, facet=noun, lex=Student, str=Student, reading=Shosei, count=-1, begin=11, end=13, correlation=0.0]
 -of[sequence=9, facet=Particle, lex=of, str=of, reading=of, count=-1, begin=13, end=14, correlation=0.0]
 -face[sequence=10, facet=noun, lex=face, str=face, reading=Kao, count=-1, begin=14, end=15, correlation=0.0]
 -To[sequence=11, facet=Particle, lex=To, str=To, reading=To, count=-1, begin=15, end=16, correlation=0.0]
 -to see[sequence=12, facet=verb, lex=to see, str=You see, reading=Mi, count=-1, begin=16, end=17, correlation=0.0]
 -Ta[sequence=13, facet=Auxiliary verb, lex=Ta, str=Ta, reading=Ta, count=-1, begin=17, end=18, correlation=0.0]
 -of[sequence=14, facet=Particle, lex=of, str=of, reading=of, count=-1, begin=18, end=19, correlation=0.0]
 -But[sequence=15, facet=Particle, lex=But, str=But, reading=But, count=-1, begin=19, end=20, correlation=0.0]
 -So-called[sequence=16, facet=Adnominal adjective, lex=So-called, str=So-called, reading=So-called, count=-1, begin=20, end=24, correlation=0.0]
 -Human[sequence=17, facet=noun, lex=Human, str=Human, reading=Human, count=-1, begin=24, end=26, correlation=0.0]
 -When[sequence=18, facet=Particle, lex=When, str=When, reading=When, count=-1, begin=26, end=27, correlation=0.0]
 -Say[sequence=19, facet=verb, lex=Say, str=Say, reading=Say, count=-1, begin=27, end=29, correlation=0.0]
 -Of things[sequence=20, facet=Particle, lex=Of things, str=Of things, reading=Of things, count=-1, begin=29, end=32, correlation=0.0]
 -Start[sequence=21, facet=noun, lex=Start, str=Start, reading=Beginning, count=-1, begin=32, end=34, correlation=0.0]
 -Is[sequence=22, facet=Auxiliary verb, lex=Is, str=so, reading=so, count=-1, begin=34, end=35, correlation=0.0]
 -is there[sequence=23, facet=Auxiliary verb, lex=is there, str=Aro, reading=Aro, count=-1, begin=35, end=37, correlation=0.0]
 -U[sequence=24, facet=Auxiliary verb, lex=U, str=U, reading=U, count=-1, begin=37, end=38, correlation=0.0]
 - 。 [sequence=25, facet=Special, lex=。, str=。, reading=。, count=-1, begin=38, end=39, correlation=0.0]
The feeling that I thought was strange at this time still remains.
 -this[sequence=1, facet=Adnominal adjective, lex=this, str=this, reading=this, count=-1, begin=0, end=2, correlation=0.0]
 -Time[sequence=2, facet=noun, lex=Time, str=Time, reading=When, count=-1, begin=2, end=3, correlation=0.0]
 -Mysterious[sequence=3, facet=noun, lex=Mysterious, str=Mysterious, reading=Myo, count=-1, begin=3, end=4, correlation=0.0]
 -Is[sequence=4, facet=Auxiliary verb, lex=Is, str=Nana, reading=Nana, count=-1, begin=4, end=5, correlation=0.0]
 -thing[sequence=5, facet=noun, lex=thing, str=thing, reading=thing, count=-1, begin=5, end=7, correlation=0.0]
 -Is[sequence=6, facet=Auxiliary verb, lex=Is, str=Is, reading=Is, count=-1, begin=7, end=8, correlation=0.0]
 -When[sequence=7, facet=Particle, lex=When, str=When, reading=When, count=-1, begin=8, end=9, correlation=0.0]
 -think[sequence=8, facet=verb, lex=think, str=Thoughts, reading=Omo, count=-1, begin=9, end=11, correlation=0.0]
 -Ta[sequence=9, facet=Auxiliary verb, lex=Ta, str=Ta, reading=Ta, count=-1, begin=11, end=12, correlation=0.0]
 -Feeling[sequence=10, facet=noun, lex=Feeling, str=Feeling, reading=Kanji, count=-1, begin=12, end=14, correlation=0.0]
 -But[sequence=11, facet=Particle, lex=But, str=But, reading=But, count=-1, begin=14, end=15, correlation=0.0]
 -now[sequence=12, facet=noun, lex=now, str=now, reading=Now, count=-1, begin=15, end=16, correlation=0.0]
 -But[sequence=13, facet=Particle, lex=But, str=But, reading=But, count=-1, begin=16, end=18, correlation=0.0]
 -Remain[sequence=14, facet=verb, lex=Remain, str=Remaining, reading=Noko, count=-1, begin=18, end=20, correlation=0.0]
 -hand[sequence=15, facet=Particle, lex=hand, str=hand, reading=hand, count=-1, begin=20, end=21, correlation=0.0]
 -Is[sequence=16, facet=Auxiliary verb, lex=Is, str=Is, reading=Is, count=-1, begin=21, end=23, correlation=0.0]
 - 。 [sequence=17, facet=Special, lex=。, str=。, reading=。, count=-1, begin=23, end=24, correlation=0.0]
The face, which should be decorated with the first hair, is slippery and looks like a kettle.
 -No.[sequence=1, facet=prefix, lex=No., str=No., reading=Big, count=-1, begin=0, end=1, correlation=0.0]
 - 1 [sequence=2, facet=noun, lex=1, str=one, reading=1, count=-1, begin=1, end=2, correlation=0.0]
 -hair[sequence=3, facet=Suffix, lex=hair, str=hair, reading=Already, count=-1, begin=2, end=3, correlation=0.0]
 -To[sequence=4, facet=Particle, lex=To, str=To, reading=To, count=-1, begin=3, end=4, correlation=0.0]
 -Offal[sequence=5, facet=verb, lex=Offal, str=Mot, reading=Mot, count=-1, begin=4, end=6, correlation=0.0]
 -hand[sequence=6, facet=Particle, lex=hand, str=hand, reading=hand, count=-1, begin=6, end=7, correlation=0.0]
 -Decoration[sequence=7, facet=noun, lex=Decoration, str=Decoration, reading=That's right, count=-1, begin=7, end=9, correlation=0.0]
 -To do[sequence=8, facet=Auxiliary verb, lex=To do, str=Sa, reading=Sa, count=-1, begin=9, end=10, correlation=0.0]
 -To be[sequence=9, facet=Auxiliary verb, lex=To be, str=Re, reading=Re, count=-1, begin=10, end=11, correlation=0.0]
 -Should[sequence=10, facet=Auxiliary verb, lex=Should, str=Should, reading=Should, count=-1, begin=11, end=13, correlation=0.0]
 -Should be[sequence=11, facet=noun, lex=Should be, str=Should be, reading=Should be, count=-1, begin=13, end=15, correlation=0.0]
 -of[sequence=12, facet=Particle, lex=of, str=of, reading=of, count=-1, begin=15, end=16, correlation=0.0]
 -face[sequence=13, facet=noun, lex=face, str=face, reading=Kao, count=-1, begin=16, end=17, correlation=0.0]
 -But[sequence=14, facet=Particle, lex=But, str=But, reading=But, count=-1, begin=17, end=18, correlation=0.0]
 -slippery[sequence=15, facet=adverb, lex=slippery, str=slippery, reading=slippery, count=-1, begin=18, end=22, correlation=0.0]
 -To do[sequence=16, facet=verb, lex=To do, str=Shi, reading=Shi, count=-1, begin=22, end=23, correlation=0.0]
 -hand[sequence=17, facet=Particle, lex=hand, str=hand, reading=hand, count=-1, begin=23, end=24, correlation=0.0]
 -as if[sequence=18, facet=adverb, lex=as if, str=as if, reading=as if, count=-1, begin=24, end=27, correlation=0.0]
 -kettle[sequence=19, facet=noun, lex=kettle, str=kettle, reading=Kettle, count=-1, begin=27, end=29, correlation=0.0]
 -Is[sequence=20, facet=Auxiliary verb, lex=Is, str=Is, reading=Is, count=-1, begin=29, end=30, correlation=0.0]
 - 。 [sequence=21, facet=Special, lex=。, str=。, reading=。, count=-1, begin=30, end=31, correlation=0.0]
After that, I met a cat a lot, but I have never met such a single wheel.
 -That[sequence=1, facet=Adnominal adjective, lex=That, str=That, reading=That, count=-1, begin=0, end=2, correlation=0.0]
 -rear[sequence=2, facet=noun, lex=rear, str=rear, reading=after, count=-1, begin=2, end=3, correlation=0.0]
 -Cat[sequence=3, facet=noun, lex=Cat, str=Cat, reading=Cat, count=-1, begin=3, end=4, correlation=0.0]
 -To[sequence=4, facet=Particle, lex=To, str=To, reading=To, count=-1, begin=4, end=5, correlation=0.0]
 -Also[sequence=5, facet=Particle, lex=Also, str=Also, reading=Also, count=-1, begin=5, end=6, correlation=0.0]
 -A lot[sequence=6, facet=adverb, lex=A lot, str=A lot, reading=A lot, count=-1, begin=6, end=9, correlation=0.0]
 -Meet[sequence=7, facet=verb, lex=Meet, str=Meet, reading=Ah, count=-1, begin=9, end=11, correlation=0.0]
 -Ta[sequence=8, facet=Auxiliary verb, lex=Ta, str=Ta, reading=Ta, count=-1, begin=11, end=12, correlation=0.0]
 -But[sequence=9, facet=Particle, lex=But, str=But, reading=But, count=-1, begin=12, end=13, correlation=0.0]
 -Such[sequence=10, facet=Adjectival noun, lex=Such, str=Such, reading=Such, count=-1, begin=13, end=16, correlation=0.0]
 -One wheel[sequence=11, facet=noun, lex=One wheel, str=One wheel, reading=Katarin, count=-1, begin=16, end=18, correlation=0.0]
 -To[sequence=12, facet=Particle, lex=To, str=To, reading=To, count=-1, begin=18, end=19, correlation=0.0]
 -Is[sequence=13, facet=Particle, lex=Is, str=Is, reading=Is, count=-1, begin=19, end=20, correlation=0.0]
 -one time[sequence=14, facet=noun, lex=one time, str=one time, reading=Once, count=-1, begin=20, end=22, correlation=0.0]
 -Also[sequence=15, facet=Particle, lex=Also, str=Also, reading=Also, count=-1, begin=22, end=23, correlation=0.0]
 -meet[sequence=16, facet=verb, lex=meet, str=Meet, reading=Millet, count=-1, begin=23, end=26, correlation=0.0]
 -To do[sequence=17, facet=Auxiliary verb, lex=To do, str=Shi, reading=Shi, count=-1, begin=26, end=27, correlation=0.0]
 -Ta[sequence=18, facet=Auxiliary verb, lex=Ta, str=Ta, reading=Ta, count=-1, begin=27, end=28, correlation=0.0]
 -Thing[sequence=19, facet=noun, lex=Thing, str=Thing, reading=thing, count=-1, begin=28, end=29, correlation=0.0]
 -But[sequence=20, facet=Particle, lex=But, str=But, reading=But, count=-1, begin=29, end=30, correlation=0.0]
 -Absent[sequence=21, facet=adjective, lex=Absent, str=Absent, reading=Absent, count=-1, begin=30, end=32, correlation=0.0]
 - 。 [sequence=22, facet=Special, lex=。, str=。, reading=。, count=-1, begin=32, end=33, correlation=0.0]
Not only that, the center of the face is too protruding.
 -As well[sequence=1, facet=conjunction, lex=As well, str=As well, reading=As well, count=-1, begin=0, end=5, correlation=0.0]
 -face[sequence=2, facet=noun, lex=face, str=face, reading=Kao, count=-1, begin=5, end=6, correlation=0.0]
 -of[sequence=3, facet=Particle, lex=of, str=of, reading=of, count=-1, begin=6, end=7, correlation=0.0]
 -middle[sequence=4, facet=noun, lex=middle, str=middle, reading=Manaka, count=-1, begin=7, end=9, correlation=0.0]
 -But[sequence=5, facet=Particle, lex=But, str=But, reading=But, count=-1, begin=9, end=10, correlation=0.0]
 -not really[sequence=6, facet=adverb, lex=not really, str=not really, reading=not really, count=-1, begin=10, end=13, correlation=0.0]
 -To[sequence=7, facet=Particle, lex=To, str=To, reading=To, count=-1, begin=13, end=14, correlation=0.0]
 -Protrusion[sequence=8, facet=noun, lex=Protrusion, str=Protrusion, reading=A long time ago, count=-1, begin=14, end=16, correlation=0.0]
 -To do[sequence=9, facet=Auxiliary verb, lex=To do, str=Shi, reading=Shi, count=-1, begin=16, end=17, correlation=0.0]
 -hand[sequence=10, facet=Particle, lex=hand, str=hand, reading=hand, count=-1, begin=17, end=18, correlation=0.0]
 -Is[sequence=11, facet=Auxiliary verb, lex=Is, str=Is, reading=Is, count=-1, begin=18, end=20, correlation=0.0]
 - 。 [sequence=12, facet=Special, lex=。, str=。, reading=。, count=-1, begin=20, end=21, correlation=0.0]
Then I sometimes blow smoke from the hole.
 -so[sequence=1, facet=adverb, lex=so, str=so, reading=so, count=-1, begin=0, end=2, correlation=0.0]
 -To do[sequence=2, facet=verb, lex=To do, str=Shi, reading=Shi, count=-1, begin=2, end=3, correlation=0.0]
 -hand[sequence=3, facet=Particle, lex=hand, str=hand, reading=hand, count=-1, begin=3, end=4, correlation=0.0]
 -That[sequence=4, facet=Adnominal adjective, lex=That, str=That, reading=That, count=-1, begin=4, end=6, correlation=0.0]
 -hole[sequence=5, facet=noun, lex=hole, str=hole, reading=hole, count=-1, begin=6, end=7, correlation=0.0]
 -of[sequence=6, facet=Particle, lex=of, str=of, reading=of, count=-1, begin=7, end=8, correlation=0.0]
 -During ~[sequence=7, facet=noun, lex=During ~, str=During ~, reading=Inside, count=-1, begin=8, end=9, correlation=0.0]
 -From[sequence=8, facet=Particle, lex=From, str=From, reading=From, count=-1, begin=9, end=11, correlation=0.0]
 -Sometimes[sequence=9, facet=noun, lex=Sometimes, str=Sometimes, reading=Sometimes, count=-1, begin=11, end=13, correlation=0.0]
 -Puu[sequence=10, facet=noun, lex=Puu, str=Puu, reading=Puu, count=-1, begin=13, end=15, correlation=0.0]
 -Puu[sequence=11, facet=noun, lex=Puu, str=Puu, reading=Puu, count=-1, begin=13, end=15, correlation=0.0]
 -When[sequence=12, facet=Particle, lex=When, str=When, reading=When, count=-1, begin=17, end=18, correlation=0.0]
 -smoke[sequence=13, facet=noun, lex=smoke, str=smoke, reading=Kemuri, count=-1, begin=18, end=19, correlation=0.0]
 -To[sequence=14, facet=Particle, lex=To, str=To, reading=To, count=-1, begin=19, end=20, correlation=0.0]
 -Blow[sequence=15, facet=verb, lex=Blow, str=Blow, reading=Clothes, count=-1, begin=20, end=22, correlation=0.0]
 - 。 [sequence=16, facet=Special, lex=。, str=。, reading=。, count=-1, begin=22, end=23, correlation=0.0]
It was so throaty that I was really weak.
 -How[sequence=1, facet=adverb, lex=How, str=How, reading=How, count=-1, begin=0, end=2, correlation=0.0]
 -Also[sequence=2, facet=Particle, lex=Also, str=Also, reading=Also, count=-1, begin=2, end=3, correlation=0.0]
 -Can throat[sequence=3, facet=verb, lex=Can throat, str=Throat, reading=Muse, count=-1, begin=3, end=5, correlation=0.0]
 -Po[sequence=4, facet=Special, lex=Po, str=Po, reading=Po, count=-1, begin=5, end=6, correlation=0.0]
 -Kuu[sequence=5, facet=verb, lex=Kuu, str=Ku, reading=Ku, count=-1, begin=6, end=7, correlation=0.0]
 -Teru[sequence=6, facet=Auxiliary verb, lex=Teru, str=hand, reading=hand, count=-1, begin=7, end=8, correlation=0.0]
 -Really[sequence=7, facet=adverb, lex=Really, str=Really, reading=In fact, count=-1, begin=8, end=10, correlation=0.0]
 -Weak[sequence=8, facet=verb, lex=Weak, str=Weak, reading=Yowa, count=-1, begin=10, end=12, correlation=0.0]
 -Ta[sequence=9, facet=Auxiliary verb, lex=Ta, str=Ta, reading=Ta, count=-1, begin=12, end=13, correlation=0.0]
 - 。 [sequence=10, facet=Special, lex=。, str=。, reading=。, count=-1, begin=13, end=14, correlation=0.0]
It was around this time that I finally learned that this is a cigarette that humans drink.
 -this[sequence=1, facet=noun, lex=this, str=this, reading=this, count=-1, begin=0, end=2, correlation=0.0]
 -But[sequence=2, facet=Particle, lex=But, str=But, reading=But, count=-1, begin=2, end=3, correlation=0.0]
 -Human[sequence=3, facet=noun, lex=Human, str=Human, reading=Human, count=-1, begin=3, end=5, correlation=0.0]
 -of[sequence=4, facet=Particle, lex=of, str=of, reading=of, count=-1, begin=5, end=6, correlation=0.0]
 -to drink[sequence=5, facet=verb, lex=to drink, str=to drink, reading=Drinking, count=-1, begin=6, end=8, correlation=0.0]
 -tobacco[sequence=6, facet=noun, lex=tobacco, str=tobacco, reading=Tobacco, count=-1, begin=8, end=10, correlation=0.0]
 -When[sequence=7, facet=Particle, lex=When, str=When, reading=When, count=-1, begin=10, end=11, correlation=0.0]
 -Say[sequence=8, facet=verb, lex=Say, str=Say, reading=Say, count=-1, begin=11, end=13, correlation=0.0]
 -thing[sequence=9, facet=noun, lex=thing, str=thing, reading=thing, count=-1, begin=13, end=15, correlation=0.0]
 -Is[sequence=10, facet=Auxiliary verb, lex=Is, str=so, reading=so, count=-1, begin=15, end=16, correlation=0.0]
 -is there[sequence=11, facet=Auxiliary verb, lex=is there, str=is there, reading=is there, count=-1, begin=16, end=18, correlation=0.0]
 -Thing[sequence=12, facet=noun, lex=Thing, str=Thing, reading=thing, count=-1, begin=18, end=19, correlation=0.0]
 -Is[sequence=13, facet=Particle, lex=Is, str=Is, reading=Is, count=-1, begin=19, end=20, correlation=0.0]
 -at last[sequence=14, facet=adverb, lex=at last, str=at last, reading=at last, count=-1, begin=20, end=24, correlation=0.0]
 -this[sequence=15, facet=Adnominal adjective, lex=this, str=this, reading=this, count=-1, begin=24, end=26, correlation=0.0]
 -Around[sequence=16, facet=noun, lex=Around, str=Around, reading=Koro, count=-1, begin=26, end=27, correlation=0.0]
 -know[sequence=17, facet=verb, lex=know, str=Know, reading=Shit, count=-1, begin=27, end=29, correlation=0.0]
 -Ta[sequence=18, facet=Auxiliary verb, lex=Ta, str=Ta, reading=Ta, count=-1, begin=29, end=30, correlation=0.0]
 - 。 [sequence=19, facet=Special, lex=。, str=。, reading=。, count=-1, begin=30, end=31, correlation=0.0]


Summary

With NLP4J, you can easily process natural language in Java!

Project URL

https://www.nlp4j.org/ NLP4J_N_128.png


Return to Index

Recommended Posts

NLP4J [006-030] 100 language processing knocks with NLP4J # 30 Reading morphological analysis results
NLP4J [006-031] 100 language processing knocks with NLP4J # 31 verb
NLP4J [006-034] 100 language processing knocks with NLP4J # 34 "A B"
NLP4J [006-033] 100 language processing knocks with NLP4J # 33 Sahen noun
NLP4J [006-032] 100 language processing with NLP4J Knock # 32 Prototype of verb
NLP4J [006-034c] 100 language processing knocks with NLP4J # 34 Try to solve "A's B" smarter (final edition)
Get detailed results of morphological analysis with Apache Solr 7.6 + SolrJ
Get detailed results of morphological analysis with Apache Solr 7.6 + SolrJ (Japanese)
Morphological analysis in Java with Kuromoji
I tried morphological analysis with MeCab
English morphological analysis like MeCab with OpenNLP
Chinese morphological analysis like Mecab with FNLP
NLP4J [006-034b] Try to make an Annotator of 100 language processing knock # 34 "A's B" with NLP4J
NLP4J [004] Try text analysis using natural language processing and parsing statistical processing in Java
NLP4J [003] Try text analysis using natural language processing and part-speech statistical processing in Java
NLP4J [001b] Morphological analysis in Java (using kuromoji)