An official website of the United States government
Here’s how you know
Official websites use .gov A
.gov website belongs to an official government
organization in the United States.
Secure .gov websites use HTTPS A
lock (
) or https:// means you’ve safely connected to
the .gov website. Share sensitive information only on official,
secure websites.
Text Categorization
PreProcess: St-Documents & Data Set
There are 6 steps to generate the complete data set of STI and STRI. They are detailed as follows:
Setup Input data:
shell> cd ${TC_PRE_PROCESS}/tcPre2008/data/${YEAR}/Sti/Input
Update following files:
MRSTY: latest version of MRSTY.${YEAR-1}AC
MRCONSO.RRF: latest version of MRCONSO.RRF.${YEAR-1}AC
SRDEF.txt: copy from previous version
stGroups.txt: generate in step 2
jds.txt: from results of JDI
wordJdidWcDcTable.txt: from results of JDI
Step 1: Generate Semantic Types file
Program:
GenSti
Inputs:
Input/MRSTY
Input/SRDEF.txt
Outputs:
Output/sts.txt
Duration: 5 Sec.
Step 2: Modify Semantic Type Groups file
Program:
GenSti
Inputs:
Input/stGroups.txt
Outputs:
Output/stGroups.txt
Duration: 1 Sec.
Step 3: Generate stDocuments
Program:
GenSti
Inputs:
Input/MRCONSO.RRF
Input/MRSTY
Output/sts.txt (from step 1)
Output/stGroups.txt (from step 2)
Outputs:
Output/stDocument.txt (combine of stDocument1.txt and stDocument2.txt)
Output/stDocument1.txt (words associated with only 1 St-Group)
Output/stDocument2.txt (words associated with multiple St-Groups)
Duration: 5 Min.
Step 4: Generate St-Jd Table
Program:
GenSti
Inputs:
Output/stDocument.txt.in (link to results from step 3 or 3-1)
Output/stDocument.txt.sort (sort from stDocument.txt.in)