Skip to main content
. 2019 Mar 19;19:64. doi: 10.1186/s12874-019-0681-4

Table 4.

Example of an unweighted term-document matrix (TDM) with outcomes

Features Outcome
documentID service a bad doctor great kind satisfied service unhappy Class
1 001312 1 0 0 1 0 1 1 0 1
2 001345 1 1 0 0 0 0 1 1 0
3 001312 0 0 1 1 0 0 0 0 1
.
.
.
699 001345 1 1 0 0 0 1 0 0 0