usc-isi-i2 / dig-crf

CRF++ extraction for DIG
Apache License 2.0
2 stars 1 forks source link

Can A Single Word Get Multiple Tags from CRF++ #5

Open CraigMiloRogers opened 8 years ago

CraigMiloRogers commented 8 years ago

Should it be possible for a single word to get multiple tags from CRF++? For example, if the word "brown" appears, might it be tagged as both "hairType" and "eyeColor"?

CraigMiloRogers commented 8 years ago

My current code assumes that a word can get only a single tag. However, there's an argument in the API that I pass a 0. If I pass it a 1, would I potentially find another choice? If only CRF++ were better documented...

szeke commented 8 years ago

If the word "brown" appears multiple times in a sentence it may get different labels, but a single instance only gets one label.

CraigMiloRogers commented 8 years ago

That's good. I still should look at that third argument and figure out what it's for.