Difference between revisions of "Entity types"

From Wisevoice Wiki
Jump to: navigation, search
 
(One intermediate revision by the same user not shown)
Line 6: Line 6:
  
 
Entity types can be defined either as a value list or as a regular expression.
 
Entity types can be defined either as a value list or as a regular expression.
 +
 +
==Defining with value lists==
  
 
When defining a value list you can also chose the appropriate matching sensitivity, ranging from exact matching to wildcard matching.
 
When defining a value list you can also chose the appropriate matching sensitivity, ranging from exact matching to wildcard matching.
Line 12: Line 14:
  
 
Value lists can also be imported as CSV files or refreshed real time from an URL.
 
Value lists can also be imported as CSV files or refreshed real time from an URL.
 +
 +
When marking entities in training examples in the Intent, Entity or Annotation views, new values will get automatically inserted in the value list corresponding to the entity type.
 +
 +
 +
== Defining with regular expressions ==
 +
  
 
Here is a RegEx example for defining a phone number entity type:
 
Here is a RegEx example for defining a phone number entity type:
  
0 ?[7|3] ?(\d ?){n}
+
''0 ?[7|3] ?(\d ?){n}''
  
 
Read more about Regular [https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_Expressions|Expressions here].
 
Read more about Regular [https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_Expressions|Expressions here].

Latest revision as of 08:59, 19 November 2019

Entity types define how a valid entity looks like.

There are system types supported out of the box like Date, Number and Free text and you can also define custom entity types.

Entity type1.png

Entity types can be defined either as a value list or as a regular expression.

Defining with value lists

When defining a value list you can also chose the appropriate matching sensitivity, ranging from exact matching to wildcard matching.

For each value you can define a list of synonyms. If one of the synonym is detected it will be automatically replaced with the base value when saving the entity in the user session. This help take NLP tasks out of the business logic pipeline.

Value lists can also be imported as CSV files or refreshed real time from an URL.

When marking entities in training examples in the Intent, Entity or Annotation views, new values will get automatically inserted in the value list corresponding to the entity type.


Defining with regular expressions

Here is a RegEx example for defining a phone number entity type:

0 ?[7|3] ?(\d ?){n}

Read more about Regular here.