javi8979 commited on
Commit
41cfa8b
·
verified ·
1 Parent(s): 73414cf

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +36 -0
README.md CHANGED
@@ -229,6 +229,42 @@ The Farm Workforce Modernization Act of 2023, which could grant legal status to
229
 
230
  </details>
231
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
232
 
233
  ## Data
234
 
 
229
 
230
  </details>
231
 
232
+ ### Named-entity recognition
233
+
234
+ For named-entity recognition tasks you can use the following prompt template:
235
+
236
+ ```
237
+ Analyse the following tokenized text and mark the tokens containing named entities.
238
+ Use the following annotation guidelines with these tags for named entities:
239
+ - ORG (Refers to named groups or organizations)
240
+ - PER (Refers to individual people or named groups of people)
241
+ - LOC (Refers to physical places or natural landmarks)
242
+ - MISC (Refers to entities that don't fit into standard categories).
243
+ Prepend B- to the first token of a given entity and I- to the remaining ones if they exist.
244
+ If a token is not a named entity, label it as O.
245
+ Input: {list of words in a sentence}
246
+ Marked:
247
+ ```
248
+
249
+ <details>
250
+ <summary>Show en example</summary>
251
+
252
+ ```python
253
+ text = """Analyse the following tokenized text and mark the tokens containing named entities.
254
+ Use the following annotation guidelines with these tags for named entities:
255
+ - ORG (Refers to named groups or organizations)
256
+ - PER (Refers to individual people or named groups of people)
257
+ - LOC (Refers to physical places or natural landmarks)
258
+ - MISC (Refers to entities that don't fit into standard categories).
259
+ Prepend B- to the first token of a given entity and I- to the remaining ones if they exist.
260
+ If a token is not a named entity, label it as O.
261
+ Input: ['La', 'defensa', 'del', 'antiguo', 'responsable', 'de', 'la', 'RFEF', 'confirma', 'que', 'interpondrá', 'un', 'recurso.']
262
+ Marked: """
263
+
264
+ # [('La', 'O'), ('defensa', 'O'), ('del', 'O'), ('antiguo', 'O'), ('responsable', 'O'), ('de', 'O'), ('la', 'O'), ('RFEF', 'B-ORG'), ('confirma', 'O'), ('que', 'O'), ('interpondrá', 'O'), ('un', 'O'), ('recurso.', 'O')]
265
+ ```
266
+
267
+ </details>
268
 
269
  ## Data
270