본문/내용
1. That이 relative clause를 나타내는지 알아보는 Algorithm 기술하고,
tagger가 몇 % error 인지를 나타냄.
① That이 지시형용사인지 관계 대명사인지 알아내는 Algorithm 기술.
- 지시 형용사와 관계 대명사 2가지 쓰임새로 쓰이는 경우만 고려하여 한다면
* 지시 형용사(DT)인 경우: that이 형용사로 쓰였기 때문에 that + 명사가 올 경우 또는
that + 형용사 + 명사 대부분의 경우 지시 형용사가 됨.
* 관계 대명사(WDT)인 경우: 이하 관계절의 주어 또는 목적어로서 앞에 나오기 때문에
that + 동사 (조동사 포함), 인칭 대명사가 오는 경우라 할수가 있음.
Algorithm 기술:
char str_buf[_MAXLEN]; //한 단어 저장을 위한 버퍼
While (There is a phrase to parse){
read a word and store str_buf
if(str_buf == `that`) {
read a next word and store str_buf
search the dictionary and determine the part of speech
if(str_buf equals noun or adjp)
printf(` 결과는 지시 형용사의 That\\n);
else if(str_buf equals verb or a personal pronoun)
printf(` 결과는 관계 대명사의 That\\n);
else
printf(` 결과는 기타 용법의 That\\n);
}
else {
read a next word and store str_buf
}
}
② 전체 Corpus자료를 APP에서 Simulation한 결과 분석
That 포함 전체 문장 수약 256문장지시 형용사 문장의 수26관계대명사 문장의 수54기타 용도240정확도약 75%
기타 용도로 쓰인 예.
- 접속사, 지시대명사, 지시…
-…