Wednesday, 21 January 2015
Automatic Word Type Detection in English
My LANGANA-E English parser making effort is continuing. Currently I can take a single or a group of sentences from KANDEL's 'The Principles of Neural Science' and analyse each of its words in terms of type.
The analysis is made firstly using an in-memory array reference that lists each type of word, namely pronouns list, irregular words list etc. Secondly the word type is taken from Webster dictionary(ver. 1910).
The example is sentence 116 at KANDEL' book:
Preface
The goal of neural science is to understand the mind.
As seen below, items coming in-memory word lists by type begin with a + sign. Webster dictionary based types are listed as they are.
of
==>||+prep.||prep.
indicates both in-memory word list for prepositions and webster gives the same result.
I intend to use the memory list when things are easy to decide and Webster for more complex situations.
The next step is to decide :
1- nouns
2- adjectives
3- compound nouns
4- noun phrases
5- verbs
6- adverbs
7- noun clauses
8- subject detection
9- object detection
EXAMPLE OUTPUT:
run:
Sentence=116-------------------------------------------------------------->
Preface
==>||n.||v. t.||imp. & p. p. Prefaced||p. pr. & vb. n. Prefacing||v. i.
The
==>||+def. art.||v. i.||adv.
goal
==>||n.
of
==>||+prep.||prep.
neural
==>||a.
science
==>||n.||v. t.
is
==>||+reg. v.||v. i.
to
==>||+prep.||prep.
understand
==>||irreg. v. neutral||v. t.||imp. & p. p. Understood||p. pr. & vb. n. Understanding||v. i.
the
==>||+def. art.||v. i.||adv.
mind
==>||n.||v. t.||imp. & p. p. Minded||p. pr. & vb. n. Minding||v. i.
Preface
The goal of neural science is to understand the mind?
BUILD SUCCESSFUL (total time: 3 seconds)
Monday, 19 January 2015
Adverb Usage Patterns
The examples are chosen from the first 20 pages of KANDEL's The Principles of Neural Science.
Other pattern analsysis for adjectives, prepositions, clauses, conjunctions etc. will follow.
-----------------------------------------------------------------
only
occurs only eight times in ancient Egyptian records
v. + only + num. adj.
these questions could be addressed only in cell biological terms.
v. + only + prep.
Wernicke proposed that only the most basic mental functions are localized
subord. clause + only + def. article.
some of which occur only fleetingly during the seizure itself
v. + only + adv. + prep
The actions of the brain underlie not only relatively simple motor behaviors, but
not only subord. clause
Only recently has this view been modified
initial only + adv. + v.
Only during the last decade,
initial only + prep.
therefore coding for, only some aspects of specific sensory stimuli
prep. + only + adj. + n.
-----------------------------------------------------------------
adv. + sentence
Initially molecular biology enriched our understanding of ion channels
initial adv. + comp. n.
Finally we want to thank John Butler, for his consistent
initial adv. + pron.
-----------------------------------------------------------------
auxillary verb + adv. + verb + tense extension
Molecular biology also has greatly expanded our understanding
v. + adv. + v. tense cont.
We are especially indebted to John H. Martin
be + adv. + passive verb
they are physiologically and embryologically unrelated to the other cell types
be + adv. + and + adv. + passive verb
neural science must continually confront certain fundamental questions
modal + adv. + v.
in actuality glia do not commonly hold nerve cells together.
do/does + not + adv. + v.
-----------------------------------------------------------------
be v. + adv. + adj.
it is particularly important to clarify the major
be v. + adv. + adj.
information that is complete and generally in accord with the standards
be v. + adj. + and + adv. + adj.
it is considerably more complex than initially envisaged by Wernicke
more + adj. + than + adv. + adj.
they are not completely symmetrical in structure
be v. + not + adv. + adj.
it is by no means completely determined until the age of about seven or eight
be v. + adv. + adv. + adj.
becomes abnormally hot
become + adv. + adj.
-----------------------------------------------------------------
adv. + sentence end .
supervised the program both scientifically and artistically.
adv. + sentence end .
-----------------------------------------------------------------
adv. + clause
He could see clearly that neurons had cell
adv. + clause
-----------------------------------------------------------------
early
In fact, by as early as the end of the eighteenth century
by + as early as
the left cerebral hemisphere is severely damaged early in life.
v. + early + prep.
This map, taken from a drawing of the early 1800s, purports to show
the + early + n.
-----------------------------------------------------------------
subj. + adv. + v.
What we commonly call the mind is a set of operations
subj. + adv. + v.
-----------------------------------------------------------------
v. + adv. + prep.
each hemisphere is concerned primarily with sensory and motor
v. + adv. + prep.
-------------------------------------------------------------------
be + adv. + comp. n.
irritative lesions are exactly the opposite of those of destructive lesions
be + adv. + comp. n.
The central nervous system is a bilateral and essentially symmetrical structure
be + indef. article + adj. + and + adv. + adj. + n.
-----------------------------------------------------------------
prep. + adv. + compund n.
Schwann cells are small cells with relatively few processes.
prep. + adv. + comp. n.
in connection with new or infrequently used drugs.
prep. + adj. + or + adv. + comp. n.
cortex is divided into four anatomically distinct lobes
prep. + adj. + adv. + comp. n.
-----------------------------------------------------------------
subj + v. + adv. + comp. n.
Thus we again stress vigorously our view,
subj. + v. + adv. + comp. n.
the ability to develop genetically modified mice
to + v. + adv. + comp. n.
Brodmann distinguished 52 anatomically and functionally distinct areas in the human
v. + adj. + adv. + and + adv. + comp. n.
-----------------------------------------------------------------
adv. + compund n.
parietal, temporal, and occipital, originally named for the skull bones that encase them.
comp. n. + adv. + adj.
owe their name to their irregular, roughly star-shaped cell bodies
adj. + adv. + adj. + n.
The cerebral hemispheres consist of a heavily wrinkled outer layer
indef. article + adv. + adj. + n.
can still develop an essentially normal grasp of language
indef. article + adv. + comp. n.
the auditory cortex as well as by areas collectively known as association cortex,
comp. n. + adv. + adj.
and how highly complex behaviors can be traced to specific regions of the brain
subord. conj. + adv. + comp. n.
who was deeply skeptical of the cytoarchitectonic approach
subord. conj. + be + adv. + comp. n.
Penfield, and more recently George Ojemann used small electrodes
conj. + more adv. + adv. + comp. n.
Since relatively few principles of organization give rise to considerable complexity,
conj. + adv. + comp. n.
to provide accurate, yet vividly graphic, diagrams that allow the reader
conj. + adv. + comp. n.
which receives information on bodily sensation.
prep. + adv. + comp. n.
-----------------------------------------------------------------
adv. + gerund
By systematically removing Gall's functional
by + adv. + gerund
They can be intensely emotional, ardently religious, and totally lacking in humor
adv. + gerund
-----------------------------------------------------------------
conj. + adv. + v.
hear her voice, or simply think about her.
conj. + adv. + v.
The selection of a single neuron from a large and initially uniform population of ectodermal cells
conj. + adv. + adj. + comp. n.
-----------------------------------------------------------------
adv. + conj.
But he could not speak grammatically or create complete sentences
adv. + conj.
-----------------------------------------------------------------
clause + adv.
The concept of localization that ultimately emerged—and prevailed—is more
subord. clause + adv. + v.
bind to specific receptors typically located in the membrane
missing subord. clause + adv. + v.
found that simply looking at the book was boring
subord. clause + adv. + gerund
and how highly complex behaviors can be traced to specific regions of the brain
subord. clause + comp. n.
-----------------------------------------------------------------
especially
a patient's knowledge of living things, especially people,
especially + comp. n.
-----------------------------------------------------------------
Other pattern analsysis for adjectives, prepositions, clauses, conjunctions etc. will follow.
-----------------------------------------------------------------
only
occurs only eight times in ancient Egyptian records
v. + only + num. adj.
these questions could be addressed only in cell biological terms.
v. + only + prep.
Wernicke proposed that only the most basic mental functions are localized
subord. clause + only + def. article.
some of which occur only fleetingly during the seizure itself
v. + only + adv. + prep
The actions of the brain underlie not only relatively simple motor behaviors, but
not only subord. clause
Only recently has this view been modified
initial only + adv. + v.
Only during the last decade,
initial only + prep.
therefore coding for, only some aspects of specific sensory stimuli
prep. + only + adj. + n.
-----------------------------------------------------------------
adv. + sentence
Initially molecular biology enriched our understanding of ion channels
initial adv. + comp. n.
Finally we want to thank John Butler, for his consistent
initial adv. + pron.
-----------------------------------------------------------------
auxillary verb + adv. + verb + tense extension
Molecular biology also has greatly expanded our understanding
v. + adv. + v. tense cont.
We are especially indebted to John H. Martin
be + adv. + passive verb
they are physiologically and embryologically unrelated to the other cell types
be + adv. + and + adv. + passive verb
neural science must continually confront certain fundamental questions
modal + adv. + v.
in actuality glia do not commonly hold nerve cells together.
do/does + not + adv. + v.
-----------------------------------------------------------------
be v. + adv. + adj.
it is particularly important to clarify the major
be v. + adv. + adj.
information that is complete and generally in accord with the standards
be v. + adj. + and + adv. + adj.
it is considerably more complex than initially envisaged by Wernicke
more + adj. + than + adv. + adj.
they are not completely symmetrical in structure
be v. + not + adv. + adj.
it is by no means completely determined until the age of about seven or eight
be v. + adv. + adv. + adj.
becomes abnormally hot
become + adv. + adj.
-----------------------------------------------------------------
adv. + sentence end .
supervised the program both scientifically and artistically.
adv. + sentence end .
-----------------------------------------------------------------
adv. + clause
He could see clearly that neurons had cell
adv. + clause
-----------------------------------------------------------------
early
In fact, by as early as the end of the eighteenth century
by + as early as
the left cerebral hemisphere is severely damaged early in life.
v. + early + prep.
This map, taken from a drawing of the early 1800s, purports to show
the + early + n.
-----------------------------------------------------------------
subj. + adv. + v.
What we commonly call the mind is a set of operations
subj. + adv. + v.
-----------------------------------------------------------------
v. + adv. + prep.
each hemisphere is concerned primarily with sensory and motor
v. + adv. + prep.
-------------------------------------------------------------------
be + adv. + comp. n.
irritative lesions are exactly the opposite of those of destructive lesions
be + adv. + comp. n.
The central nervous system is a bilateral and essentially symmetrical structure
be + indef. article + adj. + and + adv. + adj. + n.
-----------------------------------------------------------------
prep. + adv. + compund n.
Schwann cells are small cells with relatively few processes.
prep. + adv. + comp. n.
in connection with new or infrequently used drugs.
prep. + adj. + or + adv. + comp. n.
cortex is divided into four anatomically distinct lobes
prep. + adj. + adv. + comp. n.
-----------------------------------------------------------------
subj + v. + adv. + comp. n.
Thus we again stress vigorously our view,
subj. + v. + adv. + comp. n.
the ability to develop genetically modified mice
to + v. + adv. + comp. n.
Brodmann distinguished 52 anatomically and functionally distinct areas in the human
v. + adj. + adv. + and + adv. + comp. n.
-----------------------------------------------------------------
adv. + compund n.
parietal, temporal, and occipital, originally named for the skull bones that encase them.
comp. n. + adv. + adj.
owe their name to their irregular, roughly star-shaped cell bodies
adj. + adv. + adj. + n.
The cerebral hemispheres consist of a heavily wrinkled outer layer
indef. article + adv. + adj. + n.
can still develop an essentially normal grasp of language
indef. article + adv. + comp. n.
the auditory cortex as well as by areas collectively known as association cortex,
comp. n. + adv. + adj.
and how highly complex behaviors can be traced to specific regions of the brain
subord. conj. + adv. + comp. n.
who was deeply skeptical of the cytoarchitectonic approach
subord. conj. + be + adv. + comp. n.
Penfield, and more recently George Ojemann used small electrodes
conj. + more adv. + adv. + comp. n.
Since relatively few principles of organization give rise to considerable complexity,
conj. + adv. + comp. n.
to provide accurate, yet vividly graphic, diagrams that allow the reader
conj. + adv. + comp. n.
which receives information on bodily sensation.
prep. + adv. + comp. n.
-----------------------------------------------------------------
adv. + gerund
By systematically removing Gall's functional
by + adv. + gerund
They can be intensely emotional, ardently religious, and totally lacking in humor
adv. + gerund
-----------------------------------------------------------------
conj. + adv. + v.
hear her voice, or simply think about her.
conj. + adv. + v.
The selection of a single neuron from a large and initially uniform population of ectodermal cells
conj. + adv. + adj. + comp. n.
-----------------------------------------------------------------
adv. + conj.
But he could not speak grammatically or create complete sentences
adv. + conj.
-----------------------------------------------------------------
clause + adv.
The concept of localization that ultimately emerged—and prevailed—is more
subord. clause + adv. + v.
bind to specific receptors typically located in the membrane
missing subord. clause + adv. + v.
found that simply looking at the book was boring
subord. clause + adv. + gerund
and how highly complex behaviors can be traced to specific regions of the brain
subord. clause + comp. n.
-----------------------------------------------------------------
especially
a patient's knowledge of living things, especially people,
especially + comp. n.
-----------------------------------------------------------------
Subscribe to:
Posts (Atom)