Documentation
¶
Index ¶
- func CalculateSimilarity(s1, s2 string) float64
- func CleanExtractedValue(value string) string
- func ContainsMetadataField(content string, indicators []string) bool
- func GenerateDescriptionFromModelName(modelName string) string
- func GenerateReadableDescription(modelName string) string
- func GetLicenseURL(licenseID string) string
- func IsValidValue(value string, minLength int, maxLength int, allowedPatterns []string) bool
- func NormalizeModelName(name string) string
- func NormalizeTask(task string) string
- func ParseDateToEpoch(dateStr string) *int64
- func ParseLanguageNames(langStr string) []string
- func ParseTimeToEpochInt64(timeStr string) *int64
- func SanitizeManifestRef(manifestRef string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CalculateSimilarity ¶
calculateSimilarity calculates a simple similarity score between two strings
func CleanExtractedValue ¶
cleanExtractedValue removes common artifacts and validates the value
func ContainsMetadataField ¶
containsMetadataField checks if any of the field indicators are present in the content
func GenerateDescriptionFromModelName ¶
generateDescriptionFromModelName creates a readable description from a model name
func GenerateReadableDescription ¶
GenerateReadableDescription creates a human-readable description from a model name
func GetLicenseURL ¶
getLicenseURL returns the canonical URL for well-known licenses
func IsValidValue ¶
isValidValue checks if a value meets basic quality criteria
func NormalizeModelName ¶
normalizeModelName normalizes model names for comparison
func NormalizeTask ¶
NormalizeTask normalizes a task description to standard task categories
func ParseDateToEpoch ¶
parseDateToEpoch converts a date string to Unix epoch timestamp
func ParseLanguageNames ¶
parseLanguageNames converts language names to locale codes
func ParseTimeToEpochInt64 ¶
parseTimeToEpochInt64 converts ISO 8601 timestamp to epoch milliseconds int64
func SanitizeManifestRef ¶
sanitizeManifestRef creates a valid directory name from manifestRef
Types ¶
This section is empty.