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.3 kB

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