09.05.2023 Views

pdfcoffee

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Chapter 8

19/19 [==============================] - 6s 291ms/step - loss: 0.0575 -

accuracy: 0.9833 - masked_accuracy_fn: 0.8140 - val_loss: 0.1569 - val_

accuracy: 0.9615 - val_masked_accuracy_fn: 0.5511

11/11 [==============================] - 2s 170ms/step - loss: 0.1436 -

accuracy: 0.9637 - masked_accuracy_fn: 0.5786

test loss: 0.144, test accuracy: 0.963, masked test accuracy: 0.578

Here are some examples of POS tags generated for some random sentences in the test

set, shown together with the POS tags in the corresponding ground truth sentences.

As you can see, while the metric values are not perfect, it seems to have learned to do

POS tagging fairly well:

labeled : among/IN segments/NNS that/WDT t/NONE 1/VBP continue/NONE 2/

TO to/VB operate/RB though/DT the/NN company/POS 's/NN steel/NN division/

VBD continued/NONE 3/TO to/VB suffer/IN from/JJ soft/NN demand/IN for/PRP

its/JJ tubular/NNS goods/VBG serving/DT the/NN oil/NN industry/CC and/JJ

other/NNS

predicted: among/IN segments/NNS that/WDT t/NONE 1/NONE continue/NONE 2/

TO to/VB operate/IN though/DT the/NN company/NN 's/NN steel/NN division/

NONE continued/NONE 3/TO to/IN suffer/IN from/IN soft/JJ demand/NN for/IN

its/JJ tubular/NNS goods/DT serving/DT the/NNP oil/NN industry/CC and/JJ

other/NNS

labeled : as/IN a/DT result/NN ms/NNP ganes/NNP said/VBD 0/NONE t/NONE

2/PRP it/VBZ is/VBN believed/IN that/JJ little/CC or/DT no/NN sugar/IN

from/DT the/CD 1989/NN 90/VBZ crop/VBN has/VBN been/NONE shipped/RB 1/RB

yet/IN even/DT though/NN the/NN crop/VBZ year/CD is/NNS six/JJ

predicted: as/IN a/DT result/NN ms/IN ganes/NNP said/VBD 0/NONE t/NONE 2/

PRP it/VBZ is/VBN believed/NONE that/DT little/NN or/DT no/NN sugar/IN

from/DT the/DT 1989/CD 90/NN crop/VBZ has/VBN been/VBN shipped/VBN 1/RB

yet/RB even/IN though/DT the/NN crop/NN year/NN is/JJ

labeled : in/IN the/DT interview/NN at/IN headquarters/NN yesterday/NN

afternoon/NN both/DT men/NNS exuded/VBD confidence/NN and/CC seemed/VBD

1/NONE to/TO work/VB well/RB together/RB

predicted: in/IN the/DT interview/NN at/IN headquarters/NN yesterday/NN

afternoon/NN both/DT men/NNS exuded/NNP confidence/NN and/CC seemed/VBD

1/NONE to/TO work/VB well/RB together/RB

labeled : all/DT came/VBD from/IN cray/NNP research/NNP

predicted: all/NNP came/VBD from/IN cray/NNP research/NNP

labeled : primerica/NNP closed/VBD at/IN 28/CD 25/NONE u/RB down/CD 50/

NNS

predicted: primerica/NNP closed/VBD at/CD 28/CD 25/CD u/CD down/CD

[ 315 ]

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!