dotnet / dotnet/machinelearning

It's hard to create a TextLoader column of type key

Open
#3,106 2 comments 0 reactions 0 assignees View on GitHub
area-Core Priority:2
Dominant language
C#
Stars
9.4k
Forks
2k
Avg merge
2d 20h
Merged PRs (30d)
11

Description

It seems that the only way to create a key column for `TextLoader` is using this constructor:

```
public Column(string name, DataKind dataKind, TextLoader.Range[] source, KeyCount keyCount = null)
```

Should we consider adding an optional `KeyCount` argument to the other constructors?

```
public Column(string name, DataKind dataKind, int index);
public Column(string name, DataKind dataKind, int minIndex, int maxIndex);
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.