NLP for CP
Addressing Constraint Programming with Natural Language Processing
Home
Resources
Publications
Correct
predictions are in
blue
. If we detect only a subset of a labelled sentence, we highlight the caught part as
blue
, the missing part
light blue.
False positives
are in
green
and
false negatives
are in
red
.
Problem Economic_Planning — Constraint detection
An
economy
consists
of
three
industries
:
coal
,
steel
and
transport
.
Each
unit
produced
by
one
of
the
industries
-LRB-
a
unit
will
be
taken
as
1
pound
worth
of
value
of
production
-RRB-
requires
inputs
from
possibly
its
own
industry
as
well
as
other
industries
.
The
required
inputs
as
well
as
the
manpower
requirements
-LRB-
also
measured
in
pounds
-RRB-
are
given
in
a
table
.
There
is
a
time
lag
in
the
economy
so
that
the
output
in
year
t
+
1
requires
an
input
in
year
t
.
Output
from
an
industry
may
also
be
used
to
build
productive
capacity
for
itself
or
other
industries
in
future
years
.
The
inputs
required
to
give
unit
increases
-LRB-
capacity
for
1
pound
worth
of
extra
production
-RRB-
in
productive
capacity
are
given
in
a
table
.
Input
from
an
industry
in
year
t
results
in
a
-LRB-
permanent
-RRB-
increase
in
productive
capacity
in
year
t
+
2
.
Stocks
of
goods
may
be
held
from
year
to
year
.
At
present
-LRB-
year
0
-RRB-
,
the
stocks
and
productive
capacities
-LRB-
per
year
-RRB-
are
given
in
a
table
-LRB-
in
pounds/m
-RRB-
.
There
is
a
limited
yearly
manpower
capacity
of
pounds
470/m
.
It
is
wished
to
investigate
different
possible
growth
patterns
for
the
economy
over
the
next
five
years
.
In
particular
,
it
is
desirable
to
know
the
growth
patterns
that
would
result
from
pursuing
the
following
objectives
:
1
.
Maximising
total
productive
capacity
at
the
end
of
the
five
years
while
meeting
an
exogenous
consumption
requirement
of
pounds
60/m
of
coal
,
pounds
60/m
of
steel
and
pounds
30/m
of
transport
in
every
year
-LRB-
apart
from
year
0
-RRB-
.
2
.
Maximising
total
production
-LRB-
rather
than
productive
capacity
-RRB-
in
the
fourth
and
fifth
years
,
but
ignoring
exogenous
demand
in
each
year
.
3
.
Maximising
the
total
manpower
requirement
-LRB-
ignoring
the
manpower
capacity
limitation
-RRB-
over
the
period
while
meeting
the
yearly
exogenous
demands
of
-LRB-
1
-RRB-
.
Problem Economic_Planning — Detection of the decisions and objects to be modeled
An
economy
consists
of
three
industries
:
coal
,
steel
and
transport
.
Each
unit
produced
by
one
of
the
industries
-LRB-
a
unit
will
be
taken
as
1
pound
worth
of
value
of
production
-RRB-
requires
inputs
from
possibly
its
own
industry
as
well
as
other
industries
.
The
required
inputs
as
well
as
the
manpower
requirements
-LRB-
also
measured
in
pounds
-RRB-
are
given
in
a
table
.
There
is
a
time
lag
in
the
economy
so
that
the
output
in
year
t
+
1
requires
an
input
in
year
t
.
Output
from
an
industry
may
also
be
used
to
build
productive
capacity
for
itself
or
other
industries
in
future
years
.
The
inputs
required
to
give
unit
increases
-LRB-
capacity
for
1
pound
worth
of
extra
production
-RRB-
in
productive
capacity
are
given
in
a
table
.
Input
from
an
industry
in
year
t
results
in
a
-LRB-
permanent
-RRB-
increase
in
productive
capacity
in
year
t
+
2
.
Stocks
of
goods
may
be
held
from
year
to
year
.
At
present
-LRB-
year
0
-RRB-
,
the
stocks
and
productive
capacities
-LRB-
per
year
-RRB-
are
given
in
a
table
-LRB-
in
pounds/m
-RRB-
.
There
is
a
limited
yearly
manpower
capacity
of
pounds
470/m
.
It
is
wished
to
investigate
different
possible
growth
patterns
for
the
economy
over
the
next
five
years
.
In
particular
,
it
is
desirable
to
know
the
growth
patterns
that
would
result
from
pursuing
the
following
objectives
:
1
.
Maximising
total
productive
capacity
at
the
end
of
the
five
years
while
meeting
an
exogenous
consumption
requirement
of
pounds
60/m
of
coal
,
pounds
60/m
of
steel
and
pounds
30/m
of
transport
in
every
year
-LRB-
apart
from
year
0
-RRB-
.
2
.
Maximising
total
production
-LRB-
rather
than
productive
capacity
-RRB-
in
the
fourth
and
fifth
years
,
but
ignoring
exogenous
demand
in
each
year
.
3
.
Maximising
the
total
manpower
requirement
-LRB-
ignoring
the
manpower
capacity
limitation
-RRB-
over
the
period
while
meeting
the
yearly
exogenous
demands
of
-LRB-
1
-RRB-
.
Back to list