Skip to content

Can you help with an example of "predictAccount" #49

Discussion options

You must be logged in to vote

Think of predictAccount as doing a search & ranking the results, so it's going to search across all your existing transactions. Now you need to provide the query to match which is called as corpus in the doc (I think it's not a great name, I will update with a better one soon). The match will be performed against the description of the transaction (and amount)

2001-01-01   Salary jan
          ....

2001-01-01   Rent
          ...

predictAccount(salary) would likely match the first transaction and use the account from that. Normally, you pass the same value you used in the description

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by mohan-the-octocat
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants