Searched refs:tag_parts (Results 1 – 4 of 4) sorted by relevance
233 std::vector<absl::string_view> tag_parts = absl::StrSplit(tags[i], '-'); in ConvertTagsToAnnotatedSpans() local234 TC3_CHECK_GT(tag_parts.size(), 0); in ConvertTagsToAnnotatedSpans()235 if (tag_parts[0].size() != 1) { in ConvertTagsToAnnotatedSpans()240 if (tag_parts.size() > 2) { in ConvertTagsToAnnotatedSpans()242 if (!StrIsOneOf(std::string(tag_parts[1]), label_filter)) { in ConvertTagsToAnnotatedSpans()250 ? std::string(tag_parts[2]) in ConvertTagsToAnnotatedSpans()251 : absl::StrCat(tag_parts[1], "-", tag_parts[2]); in ConvertTagsToAnnotatedSpans()254 switch (tag_parts[0][0]) { in ConvertTagsToAnnotatedSpans()256 if (tag_parts.size() != 3) { in ConvertTagsToAnnotatedSpans()264 {{/*arg_collection=*/SaftLabelToCollection(tag_parts[2]), in ConvertTagsToAnnotatedSpans()[all …]
79 std::vector<absl::string_view> tag_parts = absl::StrSplit(tag, '-'); in TagsToLabels() local81 kStringToBoiseType.at(tag_parts[0]), in TagsToLabels()82 kStringToMentionType.at(tag_parts[1]), in TagsToLabels()86 std::string(tag_parts[2].substr( in TagsToLabels()87 tag_parts[2].rfind('/') + 1)))))); in TagsToLabels()
955 tag_parts = []961 tag_parts.append(str(base_tag))963 tag_parts.append('_%02d_' % self._sequence_number)966 tag_parts.append(self.automatic_test_tag)967 full_testname = '.'.join([testname] + tag_parts)972 tag_parts.append(subdir_tag)973 subdir = '.'.join([testname] + tag_parts)975 tag = '.'.join(tag_parts)
1321 tag_parts = [int(x) for x in tag.split(".")]1323 for part in tag_parts: