Izrada AI entiteta
Kreirajte prilagođene obrasce entiteta uz pomoć AI-a
Iskoristite AI za generiranje regex obrazaca za otkrivanje prilagođenih tipova entiteta koji nisu pokriveni ugrađenim prepoznavačima.
Kreiranje AI entiteta dostupno je na osnovnom planu i višim. Korisnici besplatnog plana mogu ručno kreirati prilagođene entitete koristeći regex uzorke.
AI Entity Creation is available on Basic plan and above. Free plan users can create custom entities manually using regex patterns.
Kako to funkcionira
Pružite 3-5 primjera obrasca koji želite otkriti
Recite AI što želite detektirati na jednostavnom jeziku
AI analizira primjere i generira regex obrazac
AI stvara regex uzorak na temelju vašeg opisa
Testirajte obrazac s uzorkom teksta
Testirajte uzorak s uzorkom teksta i prilagodite ako je potrebno
Pregledajte metrike kvalitete i doradite ako je potrebno
Spremite svoj prilagođeni entitet za korištenje u analizi
Kreiranje AI entiteta
Korak 1: Otvorite prilagođene entitete
- Go to Settings → Custom Entities
- Click Create New Entity
- Select AI-Assisted mode
Korak 2: Opišite svoj uzorak
Unesite jasan opis onoga što želite detektirati. Budite specifični u vezi s formatom.
Dobri primjeri
- "Employee IDs in the format EMP-12345 where 12345 is a 5-digit number"
- "Order numbers starting with ORD followed by 8 digits, like ORD12345678"
- "German postal codes - 5 digit numbers between 01000 and 99999"
- "Internal project codes: 3 uppercase letters, a dash, and 4 digits (e.g., ABC-1234)"
Izbjegavajte nejasne opise
- "ID numbers" - Too vague, what format?
- "Customer data" - What specific pattern?
- "Codes" - Need more specifics about format
Korak 3: Pregledajte generirani uzorak
AI generira regex uzorak na temelju vašeg opisa. Pregledajte ga:
// For "Employee IDs: EMP-12345"
EMP-\d{5}
Korak 4: Testirajte uzorak
- Enter sample text in the test area
- Click Test Pattern
- Verify that matches are highlighted correctly
- Check for false positives and false negatives
Korak 5: Spremite entitet
- Enter a name for your entity (e.g., EMPLOYEE_ID)
- Add an optional description
- Choose a category (Personal, Technical, Custom, etc.)
- Click Save Entity
Trošak tokena
Ovo je fiksni trošak bez obzira na složenost uzorka. Ručni unos regex-a je besplatan.
Kako biste smanjili troškove:
- Be as specific as possible in your first description
- Use manual regex if you already know the pattern
- Test thoroughly before saving to avoid recreating
Ručno kreiranje regex-a
Ako znate regex, možete ručno kreirati prilagođene entitete bez korištenja tokena:
- Go to Settings → Custom Entities
- Click Create New Entity
- Select Manual mode
- Enter your regex pattern directly
- Test and save
Savjeti za regex
| Uzorak | Značenje | Primjer podudaranja |
|---|---|---|
| \d | Any digit (0-9) | 5 |
| \d{3} | Exactly 3 digits | 123 |
| [A-Z] | Uppercase letter | A |
| [A-Z]{3} | 3 uppercase letters | ABC |
| \w | Letter, digit, or underscore | a, 1, _ |
| - | Literal dash | - |
| ? | Optional (0 or 1) | |
| + | One or more | |
| * | Zero or more |
Primjeri uzoraka
Employee ID (EMP-12345)
EMP-\d{5}
Order Number (ORD12345678)
ORD\d{8}
Project Code (ABC-1234)
[A-Z]{3}-\d{4}
License Plate (ABC 123 or ABC-123)
[A-Z]{3}[\s-]?\d{3}
Korištenje prilagođenih entiteta
Jednom kada su kreirani, prilagođeni entiteti rade kao ugrađeni entiteti:
U analitičaru
- Open the entity selection panel
- Find your custom entity under the Custom category
- Check the box to include it in detection
- Run analysis as normal
U postavkama
- Create or edit a preset
- Select your custom entity from the entity list
- Save the preset
Tip
Prilagođeni entiteti prikazuju se s oznakom "Prilagođeno" kako bi se razlikovali od ugrađenih entiteta.
Upravljanje prilagođenim entitetima
Uređivanje entiteta
- Go to Settings → Custom Entities
- Find your entity and click Edit
- Modify the name, description, or pattern
- Test the updated pattern
- Save changes
Brisanje entiteta
- Go to Settings → Custom Entities
- Find your entity and click Delete
- Confirm deletion
Note
Brisanje prilagođenog entiteta uklanja ga iz svih postavki koje ga koriste. Postavke će i dalje raditi, ali neće detektirati tu vrstu entiteta.
Najbolje prakse
Related Documentation
Zadnje ažuriranje: Ožujak 2026