Skip to main content

Lexical Resources

info

The options and functionalities described in this page currently only apply to Teneo Studio Desktop

Lexical resource information

In Teneo Studio, before opening a solution, it is possible to see which lexical resources are available in the account by clicking the Lexical tab.

Each lexical resource is displayed with the following information:

  • Lexical resource name
  • Language
  • Version
  • Notes
  • Assignments
info

The options and functionalities described in this page currently only apply to Teneo Studio Desktop

Teneo Studio allows to use both lexical resources, such as the Teneo Lexical Resources, as well as project-specific Language Objects and Entities.
However, when the name of an Entity or either the name or alias of a Language Object in an assigned lexical resource coincides with the name (or alias) of a Language Object or Entity in a solution, a conflict occurs and the message Lexical Resource Information appears at the bottom of the Solution Explorer. Clicking the message opens a new contextual tab called Lexical Resource Actions in Teneo Studio.

info

If having two Language Objects or Entities with the same name, one residing in a lexical resource and the second in the solution, the document in the solution takes precedence.

Lexical Resource Actions

The Lexical Resource Actions tab in Teneo Studio provides the following options:

  • Conflicts
    • Reload the list of conflicting documents
  • Local Object
    • Open the Language Object or Entity of the solution
    • Disable the document in the solution
    • Delete the document in the solution
    • Rename the document in the solution; this automatically adds "_1" suffix to the name of the Language Object or Entity located in the solution
  • Lexical Resource
    • Open the Language Object or Entity of the lexical resource
    • Resources navigates to the Resources panel in the backstage of Teneo Studio

Lexical Resource Actions tab

In the list of conflicting documents, the column to the left displays the icon of either the Language Object or the Entity while the second column displays an icon indicating if the conflict is in the name of the Language Object/Entity or in the alias of a Language Object.
Hovering over any of the documents will display an informative message, providing information about the Entity or Language Object as well as information related to the conflict.

Conflicts

Resolve

Conflicts can be resolved by deleting, disabling or renaming the Language Object or Entity in the solution, to do this follow the below steps:

  • Select the document(s) in conflict; multi-select by holding down Ctrl while selecting
  • Click either Disable, Delete or Rename, depending on the action to carry out.

If choosing to rename the conflicting documents, a unique name will be generated by adding underscore followed by a number, i.e. "_1". Alternatively, it is also possible to rename the document(s) manually by opening the document and writing the name in the Properties tab in the backstage.

Once all conflicts are resolved, the Actions tab will disappear automatically.

Unresolved

The user can choose to not resolve the conflict(s) and keep the conflicting name(s)/alias(es). In this case, the local document of the solution takes precedence over the document from the lexical resource, meaning that at runtime Teneo Engine uses the document stored in the solution.

Delete a lexical resource

To delete a lexical resource from the account follow the below steps:

  • Before opening a solution in Teneo Studio, click Lexical in the left side panel
  • Go to the lexical resource to delete (scrolling up/down in the list of resources)
  • Click Delete
  • In the pop-up message, confirm the deletion by clicking Yes
  • Teneo Studio will delete the selected resource from the server
warning

It is only possible to delete lexical resources without any assignments. To unassign lexical resources, please see here.

Assign a Lexical Resource

If lexical resources are available at solution creation for the selected language, then these are auto-assigned to the solution during the creation process

To assign a lexical resource to a solution, follow the below steps:

  • Go to Lexical tab in the backstage of Teneo Studio (Solution tab > Resources > Lexical)
  • Click Edit in the top right area of the view
  • Next, click Assign Lexical Resource
  • In the dropdown menu select the wanted lexical resource; selecting a lexical resource automatically assigns the latest version available
  • Click Save to apply the change to the solution
  • Lastly, go to the Tryout to reload the engine by clicking Reload now for the changes to be applied to the solution.
info

The available resources depend on which lexical resources have earlier been added to the account, see how to manage lexical resources here.

Assigning a lexical resource

History

The History button allows to see the history of the Lexical Resources assignments.

Version Flag

The button Set Stable allows to set a specific Lexical Resource assignment to the stable version and it is mandatory to set a Lexical Resource assignment to stable to be able to test or publish a stable version of the solution.

Unset Stable allows to remove the stable flag from a specific Lexical Resource assignment.

Learn more about Version flags.

Upgrade Lexical Resource Assignment

When newer versions of a lexical resource is available, the Studio user can update the Lexical Resource assignment in the backstage of Teneo Studio:

  • Go to Lexical Resources in the backstage of Teneo Studio: Solution tab > Resources > Lexical
  • Click Edit in the top of the window
  • In the right side of the Recommended version, click Upgrade
  • Save the changes in the top of the window
  • Remember to reload the Tryout for the upgrade to be applied

Unassign a Lexical Resource

To remove the reference to a lexical resource from the solution, please follow the below steps:

  • Go to Lexical tab in the backstage of Teneo Studio (Solution tab > Resources > Lexical)
  • Click Edit in the top right area of the view
  • Next, click Unassign next to the lexical resource
  • In the pop-up window, click Yes to confirm the unassignment of the lexical resource
  • Click Save to apply the change to the solution
  • Lastly, go to the Tryout to reload the engine by clicking Reload now for the changes to be applied to the solution.

Teneo NLU Ontology and Semantic Network (Lexical Resource)