Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions NLPHelloWorld/NLPHelloWorld.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="AboditNLP" Version="3.21.152.2" />
<PackageReference Include="AboditNLPDictionary" Version="3.21.152.2" />
<PackageReference Include="AboditNLPWordnet" Version="3.21.152.2" />
<PackageReference Include="AboditNLPWordnetExtended" Version="3.21.152.2" />
<PackageReference Include="Autofac.Extras.AboditNLP" Version="3.21.152.2" />
<PackageReference Include="AboditNLP" Version="3.21.164.2" />
<PackageReference Include="AboditNLPDictionary" Version="3.21.164.2" />
<PackageReference Include="AboditNLPWordnet" Version="3.21.164.2" />
<PackageReference Include="AboditNLPWordnetExtended" Version="3.21.164.2" />
<PackageReference Include="Autofac.Extras.AboditNLP" Version="3.21.164.2" />
<PackageReference Include="Microsoft.Extensions.Logging.Abstractions" Version="5.0.0" />
<ProjectReference Include="..\NLPHelloWorldRules\NLPHelloWorldRules.csproj" />
</ItemGroup>
Expand Down
3 changes: 2 additions & 1 deletion NLPHelloWorldRules/HowToDefinePrefixes.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
using AboditNLP.Preposition;
using AboditNLP.Question;
using AboditNLP.Punctuation;
using AboditNLP.Noun;


namespace NLPHelloWorldRules
{
Expand All @@ -26,7 +28,6 @@ public class Prefix
public string OptionalResponsePrefix { get; set; }
}


public partial class SampleRules : INLPRule
{
[ProductionRule]
Expand Down
19 changes: 19 additions & 0 deletions NLPHelloWorldRules/HowToUseAPrefix.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
using System.Data;
using System.Linq;
using Abodit.Expressions;
using Abodit.Meta;
using AboditNLP;
using AboditNLP.Attributes;

namespace NLPHelloWorldRules
{
public partial class SampleRules : INLPRule
{
public NLPActionResult GrammarDumpWithPrefix(Prefix prefix, IAmbiguous<ITokenText> tokenAmbiguous)
{
st.Say(prefix.OptionalResponsePrefix);
intent.GrammarDump(st, tokenAmbiguous);
return NLPActionResult.None;
}
}
}
6 changes: 3 additions & 3 deletions NLPHelloWorldRules/NLPHelloWorldRules.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="AboditNLP" Version="3.21.152.2" />
<PackageReference Include="AboditNLPDictionary" Version="3.21.152.2" />
<PackageReference Include="AboditNLPWordnet" Version="3.21.152.2" />
<PackageReference Include="AboditNLP" Version="3.21.164.2" />
<PackageReference Include="AboditNLPDictionary" Version="3.21.164.2" />
<PackageReference Include="AboditNLPWordnet" Version="3.21.164.2" />
<PackageReference Include="Microsoft.Extensions.Logging.Abstractions" Version="5.0.0" />
</ItemGroup>

Expand Down