Skip to content

Commit 133ddd8

Browse files
committed
Document use of num for list item.
1 parent 6e14527 commit 133ddd8

File tree

2 files changed

+18
-3
lines changed

2 files changed

+18
-3
lines changed

doc/lexparser/StanfordDependenciesManual.tex

+8-3
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,8 @@
3939
% Revised for the Stanford Parser v.\ 3.3 in December 2013
4040
%Revised for the Stanford Parser v.\ 3.5.1 in February 2015
4141
%Revised for the Stanford Parser v.\ 3.5.2 in April 2015
42-
Revised for the Stanford Parser v.\ 3.7.0+ in September 2016
42+
%Revised for the Stanford Parser v.\ 3.7.0+ in September 2016
43+
Revised for the Stanford CoreNLP/Parser v.\ 4.5.5 in August 2023
4344
}
4445

4546
\begin{document}
@@ -48,7 +49,8 @@
4849
\textcolor{cardinal}{Please note that this manual describes the original Stanford
4950
Dependencies representation. As of version 3.5.2, the default representation
5051
output by the Stanford Parser and Stanford CoreNLP is the new Universal Dependencies (UD)
51-
representation, and we no longer actively develop the original Stanford Dependencies representation. For a description of the UD
52+
representation, support for the original Stanford Dependencies
53+
representation is in maintenance mode. For a description of the UD
5254
representation, take a look at the Universal Dependencies documentation at \textsf{http:/www.universaldependencies.org} and
5355
the discussion of the \textit{enhanced} and \textit{enhanced++} UD representations by \citet{schuster2016enhanced}.}
5456

@@ -460,12 +462,15 @@ \section{Definitions of the Stanford typed dependencies}\label{def}
460462

461463
\noindent\textbf{\emph{num}: numeric modifier}\\
462464
A numeric modifier of a noun is any number phrase that serves to
463-
modify the meaning of the noun with a quantity.
465+
modify the meaning of the noun with a quantity. As a bit of a weird
466+
special case, we also use \emph{num} for the items of a numbered list
467+
(regardless of whether arabic or roman numerals or letters).
464468
\begin{tabbing}
465469
\hspace{1cm} \= xxxxxxxxxxxxxxxxxxxxxxxxxx\= \hspace{.5cm}\= \kill
466470
\> ``Sam ate 3 sheep'' \> \> \emph{num}(sheep, 3)\\
467471
\> ``Sam spent forty dollars'' \> \> \emph{num}(dollars, 40)\\
468472
\> ``Sam spent \$ 40'' \> \> \emph{num}(\$, 40)\\
473+
\> ``(i) Assessment of general working capital'' \> \> \emph{num}(Assessment, i)\\
469474
\end{tabbing}
470475

471476
\noindent\textbf{\emph{number}: element of compound number}\\

test/src/edu/stanford/nlp/trees/EnglishGrammaticalStructureTest.java

+10
Original file line numberDiff line numberDiff line change
@@ -589,6 +589,7 @@ public void testMoreBasicRelations() {
589589
"(FRAG (ADVP (ADVP (RB So) (RB long)) (SBAR (IN as) (S (NP-SBJ (PRP you)) (VP (VBP do) (RB n't) (VP (VB look) (ADVP-DIR (RB down))))))) (. .))",
590590
"( (S (NP (NNS Hippos)) (VP (VBP weigh) (NP (QP (RP up) (IN to) (CD 2,700)) (NNS kilograms))) (. .)))",
591591
"( (S (NP (NNS Hippos)) (VP (VBP weigh) (NP (QP (RB up) (IN to) (CD 2,700)) (NNS kilograms))) (. .)))",
592+
"( (S (NP (PRP I)) (VP (VBD purchased) (NP (QP (RP up) (IN to) (CD 192,000)) (JJ additional) (JJ ordinary) (NNS shares))) (. .)))",
592593
};
593594

594595
// the expected dependency answers (basic)
@@ -714,6 +715,15 @@ public void testMoreBasicRelations() {
714715
"num(kilograms-6, 2,700-5)\n" +
715716
"dobj(weigh-2, kilograms-6)\n",
716717

718+
"nsubj(purchased-2, I-1)\n" +
719+
"root(ROOT-0, purchased-2)\n" +
720+
"quantmod(192,000-5, up-3)\n" +
721+
"mwe(up-3, to-4)\n" +
722+
"num(shares-8, 192,000-5)\n" +
723+
"amod(shares-8, additional-6)\n" +
724+
"amod(shares-8, ordinary-7)\n" +
725+
"dobj(purchased-2, shares-8)",
726+
717727
};
718728

719729
assertEquals("Test array lengths mismatch!", testTrees.length, testAnswers.length);

0 commit comments

Comments
 (0)