-
Notifications
You must be signed in to change notification settings - Fork 0
/
DeteccaoIdioma.xaml
84 lines (84 loc) · 8.18 KB
/
DeteccaoIdioma.xaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
<Activity mc:Ignorable="sap sap2010" x:Class="DeteccaoIdioma" mva:VisualBasic.Settings="{x:Null}" sap:VirtualizedContainerService.HintSize="1812,1073" sap2010:WorkflowViewState.IdRef="DeteccaoIdioma_1" xmlns="http://schemas.microsoft.com/netfx/2009/xaml/activities" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:mva="clr-namespace:Microsoft.VisualBasic.Activities;assembly=System.Activities" xmlns:njl="clr-namespace:Newtonsoft.Json.Linq;assembly=Newtonsoft.Json" xmlns:sap="http://schemas.microsoft.com/netfx/2009/xaml/activities/presentation" xmlns:sap2010="http://schemas.microsoft.com/netfx/2010/xaml/activities/presentation" xmlns:scg="clr-namespace:System.Collections.Generic;assembly=mscorlib" xmlns:sco="clr-namespace:System.Collections.ObjectModel;assembly=mscorlib" xmlns:ui="http://schemas.uipath.com/workflow/activities" xmlns:um="clr-namespace:UiPath.MLServices;assembly=UiPath.MLServices" xmlns:uma="clr-namespace:UiPath.MLServices.Activities;assembly=UiPath.MLServices.Activities" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
<TextExpression.NamespacesForImplementation>
<sco:Collection x:TypeArguments="x:String">
<x:String>System.Activities</x:String>
<x:String>System.Activities.Statements</x:String>
<x:String>System.Activities.Expressions</x:String>
<x:String>System.Activities.Validation</x:String>
<x:String>System.Activities.XamlIntegration</x:String>
<x:String>Microsoft.VisualBasic</x:String>
<x:String>Microsoft.VisualBasic.Activities</x:String>
<x:String>System</x:String>
<x:String>System.Collections</x:String>
<x:String>System.Collections.Generic</x:String>
<x:String>System.Data</x:String>
<x:String>System.Diagnostics</x:String>
<x:String>System.Drawing</x:String>
<x:String>System.IO</x:String>
<x:String>System.Linq</x:String>
<x:String>System.Net.Mail</x:String>
<x:String>System.Xml</x:String>
<x:String>System.Xml.Linq</x:String>
<x:String>UiPath.Core</x:String>
<x:String>UiPath.Core.Activities</x:String>
<x:String>System.Windows.Markup</x:String>
<x:String>Newtonsoft.Json.Linq</x:String>
<x:String>UiPath.MLServices</x:String>
</sco:Collection>
</TextExpression.NamespacesForImplementation>
<TextExpression.ReferencesForImplementation>
<sco:Collection x:TypeArguments="AssemblyReference">
<AssemblyReference>System.Activities</AssemblyReference>
<AssemblyReference>Microsoft.VisualBasic</AssemblyReference>
<AssemblyReference>mscorlib</AssemblyReference>
<AssemblyReference>System.Data</AssemblyReference>
<AssemblyReference>System.Data.DataSetExtensions</AssemblyReference>
<AssemblyReference>System</AssemblyReference>
<AssemblyReference>System.Drawing</AssemblyReference>
<AssemblyReference>System.Core</AssemblyReference>
<AssemblyReference>System.Xml</AssemblyReference>
<AssemblyReference>System.Xml.Linq</AssemblyReference>
<AssemblyReference>PresentationFramework</AssemblyReference>
<AssemblyReference>WindowsBase</AssemblyReference>
<AssemblyReference>PresentationCore</AssemblyReference>
<AssemblyReference>System.Xaml</AssemblyReference>
<AssemblyReference>UiPath.System.Activities</AssemblyReference>
<AssemblyReference>UiPath.UiAutomation.Activities</AssemblyReference>
<AssemblyReference>Newtonsoft.Json</AssemblyReference>
<AssemblyReference>UiPath.MLServices</AssemblyReference>
<AssemblyReference>UiPath.System.Activities.Design</AssemblyReference>
</sco:Collection>
</TextExpression.ReferencesForImplementation>
<Sequence DisplayName="DeteccaoIdioma" sap:VirtualizedContainerService.HintSize="392,908" sap2010:WorkflowViewState.IdRef="Sequence_1">
<Sequence.Variables>
<Variable x:TypeArguments="x:String" Name="out_LangDec" />
<Variable x:TypeArguments="x:String" Name="in_LangDec" />
<Variable x:TypeArguments="njl:JObject" Name="ret_LangDec" />
</Sequence.Variables>
<sap:WorkflowViewStateService.ViewState>
<scg:Dictionary x:TypeArguments="x:String, x:Object">
<x:Boolean x:Key="IsExpanded">True</x:Boolean>
</scg:Dictionary>
</sap:WorkflowViewStateService.ViewState>
<ui:InputDialog Options="{x:Null}" DisplayName="Insere texto" sap:VirtualizedContainerService.HintSize="350,92" sap2010:WorkflowViewState.IdRef="InputDialog_1" IsPassword="False" Label="Entre com um texto para detecção de idioma" Title="Detecção de Idioma">
<ui:InputDialog.Result>
<OutArgument x:TypeArguments="x:String">[in_LangDec]</OutArgument>
</ui:InputDialog.Result>
</ui:InputDialog>
<uma:MLSkills ContinueOnError="{x:Null}" DelayAfter="{x:Null}" DelayBefore="{x:Null}" Name="{x:Null}" NumberOfRetries="{x:Null}" ResponseHeaders="{x:Null}" Result="{x:Null}" StatusCode="{x:Null}" TimeOutMs="{x:Null}" DisplayName="MLSkill" sap:VirtualizedContainerService.HintSize="350,352" sap2010:WorkflowViewState.IdRef="MLSkills_1" Item="[in_LangDec]" JsonResponse="[out_LangDec]" NextPageNum="2" RefreshList="False" TotalCount="3">
<uma:MLSkills.MLSkillList>
<scg:List x:TypeArguments="um:MLSkill" Capacity="4">
<um:MLSkill AccessUri="https://aifabric.uipath.com/mlskills/host/48db1b7d-b530-4d8c-877b-6dc50027356a/analisesentimento" Description="Modelo analisa o sentimento baseado em um texto" Id="0e076ac0-118c-4f25-bf1d-5bfb1a32d4c1" InputDescription="Text to be analyzed.
For example: "I am dissatisfied with this service."" InputType="JSON" Name="AnaliseSentimento" OutputDescription="JSON with class name and confidence on that class prediction (between 0-1) Class prediction can be one of: "Very Negative", "Negative", "Neutral", "Positive", "Very Positive"
For example: '{"sentiment": "Very Negative", "confidence": 0.97}'" TenantId="48db1b7d-b530-4d8c-877b-6dc50027356a" />
<x:Reference>__ReferenceID0</x:Reference>
<um:MLSkill AccessUri="https://aifabric.uipath.com/mlskills/host/48db1b7d-b530-4d8c-877b-6dc50027356a/inventorymanagement" Description="The model will predict sales for the next time period." Id="d6d39230-98c7-479c-9e0f-187eb20a4093" InputDescription="List of past 12 periods of sales. Example: “[1,2,3,4,5,6,7,8,9,10,11,12]”" InputType="JSON" Name="InventoryManagement" OutputDescription="{}{“prediction”: <Predicted Sales>}
" TenantId="48db1b7d-b530-4d8c-877b-6dc50027356a" />
</scg:List>
</uma:MLSkills.MLSkillList>
<uma:MLSkills.SelectedMLSkill>
<um:MLSkill x:Name="__ReferenceID0" AccessUri="https://aifabric.uipath.com/mlskills/host/48db1b7d-b530-4d8c-877b-6dc50027356a/deteccaoidioma" Description="Detecta um idioma baseado em um texto" Id="32773afb-b31d-4c75-a907-25f866c860bb" InputDescription="Text to be analyzed.
For example:
"Necesito ayuda con mi pedido."" InputType="JSON" Name="DeteccaoIdioma" OutputDescription="JSON with prediction of the language.
Output will be a prediction for the input's language along with a confidence of that prediction.
{
 "language":"Spanish", 
 "confidence": 1.0
}" TenantId="48db1b7d-b530-4d8c-877b-6dc50027356a" />
</uma:MLSkills.SelectedMLSkill>
</uma:MLSkills>
<ui:DeserializeJson x:TypeArguments="njl:JObject" DisplayName="Deserialize JSON" sap:VirtualizedContainerService.HintSize="350,60" sap2010:WorkflowViewState.IdRef="DeserializeJson`1_1" JsonObject="[ret_LangDec]" JsonString="[out_LangDec]" />
<ui:LogMessage DisplayName="Log Message" sap:VirtualizedContainerService.HintSize="350,93" sap2010:WorkflowViewState.IdRef="LogMessage_1" Level="Info" Message="[out_LangDec]" />
<ui:MessageBox Caption="{x:Null}" ChosenButton="{x:Null}" DisplayName="Message Box" sap:VirtualizedContainerService.HintSize="350,59" sap2010:WorkflowViewState.IdRef="MessageBox_1" Text="["Idioma: " + ret_LangDec("language").ToString +
vbCrLf + 
"Assertividade: " + 
(CDbl(ret_LangDec("confidence"))*100).ToString +
" %"]" />
</Sequence>
</Activity>