alteryx / alteryx/nlp_primitives

Use a consistent return_type for Count* primitives

Đang mở
#156 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
Python
Star
37
Fork
13
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

In some counting primitives we are using a `Double` return type (like `PartOfSpeechCount`) while in others `IntegerNullable` is used as the return type (like `NumUniqueSeparators`).

Given that all of the counting primitives should be returning a whole number (or optionally null), `IntegerNullable` seems like a more appropriate return type to use than `Double`. We should investigate if there is a reason for using `Double` in some primitives, and, if possible, convert these to use an `IntegerNullable` return type.

Primitives to study:
- MedianWordLength
- PartOfSpeechCount
- PunctuationCount
- TitleWordCount
- TotalWordLength
- UpperCaseCount

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.