You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

CRF.cs 1.4 kB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Text;
  4. using Tensorflow;
  5. using static Tensorflow.Python;
  6. namespace TensorFlowNET.Examples
  7. {
  8. /// <summary>
  9. /// The CRF module implements a linear-chain CRF layer for learning to predict tag sequences.
  10. /// This variant of the CRF is factored into unary potentials for every element
  11. /// in the sequence and binary potentials for every transition between output tags.
  12. ///
  13. /// tensorflow\contrib\crf\python\ops\crf.py
  14. /// </summary>
  15. public class CRF : IExample
  16. {
  17. public bool Enabled { get; set; } = true;
  18. public bool IsImportingGraph { get; set; } = false;
  19. public string Name => "CRF";
  20. public bool Run()
  21. {
  22. return true;
  23. }
  24. public void PrepareData()
  25. {
  26. }
  27. public Graph ImportGraph()
  28. {
  29. throw new NotImplementedException();
  30. }
  31. public Graph BuildGraph()
  32. {
  33. throw new NotImplementedException();
  34. }
  35. public void Train(Session sess)
  36. {
  37. throw new NotImplementedException();
  38. }
  39. public void Predict(Session sess)
  40. {
  41. throw new NotImplementedException();
  42. }
  43. public void Test(Session sess)
  44. {
  45. throw new NotImplementedException();
  46. }
  47. }
  48. }