Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

some Problem in Chain CRF.py #11

Open
cgp1997 opened this issue Apr 25, 2022 · 2 comments
Open

some Problem in Chain CRF.py #11

cgp1997 opened this issue Apr 25, 2022 · 2 comments

Comments

@cgp1997
Copy link

cgp1997 commented Apr 25, 2022

def _fetch_mask(self):
mask = None

    if self._inbound_nodes:
        mask = self._inbound_nodes[0].input_masks[0]

    return mask

I haven't found the corresponding function for the input_masks here. Is there anything that can be replaced?

@KrishnaM313
Copy link

Hey, sorry for the late message, but I am trying this now and getting a very similar error. [https://pastebin.com/yffUk1wV] Was yours the same? Were you able to resolve it, and if so could you tell me how?

@cgp1997
Copy link
Author

cgp1997 commented Mar 3, 2023

Hey, sorry for the late message, but I am trying this now and getting a very similar error. [https://pastebin.com/yffUk1wV] Was yours the same? Were you able to resolve it, and if so could you tell me how?
As far as I can deduce because the source code does not match the tensorflow version, I found a new ChainCRF implementation elsewhere.
https://github.com/qcri/dialectal_arabic_segmenter/blob/master/code/ChainCRF.py

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants