emory-courses / computational-linguistics

Computational Linguistics.
90 stars 100 forks source link

[QZ1] normalize_extra #22

Open kristinagxy opened 2 years ago

kristinagxy commented 2 years ago

Hello! I am a little confused about what normalize_extra should do. My understanding is that after we put the text through the normalize method, where all a/an are transformed into "1", we then put the output into normalize_extra to transform part of the "1"s back to the original a/an. Is that what we are expected to do? Thank you!!

SichangTu commented 2 years ago

Hi, the normalize_extra is more like an extension of the normalize method. We expect that normalize_extra can identify whether an indefinite article indicates quantities. For example, in the sentence 'I know a boy who has a sister.'

The normalize method may convert both a into 1 --> I know 1 boy who has 1 sister.

But the normalize_extra method should output I know a boy who has 1 sister.

kristinagxy commented 2 years ago

Hi, the normalize_extra is more like an extension of the normalize method. We expect that normalize_extra can identify whether an indefinite article indicates quantities. For example, in the sentence 'I know a boy who has a sister.'

The normalize method may convert both a into 1 --> I know 1 boy who has 1 sister.

But the normalize_extra method should output I know a boy who has 1 sister.

So normalize_extra only convert the indefinite articles and it can identify whether the article indicates quantities or not. Is that right?