forked from SciSharp/TensorFlow.NET
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCRF.cs
55 lines (45 loc) · 1.27 KB
/
CRF.cs
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
using System;
using Tensorflow;
namespace TensorFlowNET.Examples
{
/// <summary>
/// The CRF module implements a linear-chain CRF layer for learning to predict tag sequences.
/// This variant of the CRF is factored into unary potentials for every element
/// in the sequence and binary potentials for every transition between output tags.
///
/// tensorflow\contrib\crf\python\ops\crf.py
/// </summary>
public class CRF : IExample
{
public bool Enabled { get; set; } = true;
public bool IsImportingGraph { get; set; } = false;
public string Name => "CRF";
public bool Run()
{
return true;
}
public void PrepareData()
{
}
public Graph ImportGraph()
{
throw new NotImplementedException();
}
public Graph BuildGraph()
{
throw new NotImplementedException();
}
public void Train(Session sess)
{
throw new NotImplementedException();
}
public void Predict(Session sess)
{
throw new NotImplementedException();
}
public void Test(Session sess)
{
throw new NotImplementedException();
}
}
}