(sortedTableList, expected_tables, k)
| 18 | #Check each cell to see if it is text. Then if enough number of cells are text, the column is considered as a text column. |
| 19 | |
| 20 | def getAccuracyResult(sortedTableList, expected_tables, k): |
| 21 | i = 0 |
| 22 | tp = 0 |
| 23 | fp = 0 |
| 24 | for key in sortedTableList: |
| 25 | data_lake_table = key[0].split(os.sep)[-1] |
| 26 | if data_lake_table in expected_tables: |
| 27 | tp = tp+1 |
| 28 | else: |
| 29 | fp = fp+1 |
| 30 | i = i +1 |
| 31 | if (i >=k): |
| 32 | break |
| 33 | fp = k - tp |
| 34 | return tp, fp |
| 35 | |
| 36 | def getMatchingTables(item, weight, parameter): |
| 37 | returnList = [] |
nothing calls this directly
no outgoing calls
no test coverage detected