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

Nonetype object has no attribute error #5

Open
Shafi2016 opened this issue Nov 2, 2020 · 7 comments
Open

Nonetype object has no attribute error #5

Shafi2016 opened this issue Nov 2, 2020 · 7 comments

Comments

@Shafi2016
Copy link

Hello, Thanks for the nice work, I am trying to replicate your example (at Kaggle) with my data and my grammar files. However at this chunk of code

`%%capture --no-display

For each relevant factor

tables_by_relevant_factor = {}
for relevant_factor, papers in tqdm(papers_by_relevant_factor.items(), desc='Extracting: '):
table = extract_from_text(papers, relevant_factors_grammar_engine)
tables_by_relevant_factor[relevant_factor] = table`

I am getting the following error. Kindly assist. Thanks in advance!!
image

@javiersastre
Copy link
Member

javiersastre commented Nov 2, 2020 via email

@Shafi2016
Copy link
Author

Hello Javier,

Thanks for the instruction. I am getting another that .fst2 is not a UTF16-LE text file. Please let me know me how to correct this error.

Regards,
Shafi

errror_fst2

@javiersastre
Copy link
Member

javiersastre commented Nov 2, 2020 via email

@Shafi2016
Copy link
Author

Thanks, Dr. Javier !!!
Sorry for asking a basic question, I do not have a CS background and using this compiler first time.

I have gcc and "make" tools using MSYC.
And I open,
cd /c/
cd ‘C:/Program Files (x86)/Unitex-GramLab/Src/unitex-core/build’
and then type make install
But I am getting error

./configure: eval: line 2276: syntax error near unexpected token (' ./configure: eval: line 2276: ${SHELL} /c/Program Files (x86)/Unitex-GramLab/Src/unitex-core/build/tre-0.8.0/utils/missing --run true'
make: *** [Makefile:1592: .libtre-done] Error 2

Thanks for your time!!!

Unitex-errro

@javiersastre
Copy link
Member

javiersastre commented Nov 6, 2020 via email

@Shafi2016
Copy link
Author

Thanks, Dr. Javier once again for your response! I have now installed a virtual machine and Ubuntu.

I moved to shafi@shafi-VirtualBox:~/Unitex-GramLab-3.2/Src/unitex-core/build$ make install

Everything seems to work fine until the end I get the following error. Is there any mistake I am making?

ErrorwithUbuntupg
virtual machine and Ubuntu

@javiersastre
Copy link
Member

It's been a while, not sure if this will be still useful to you, try Unitex 3.1, it doesn't give that error:

https://unitexgramlab.org/releases/3.1/

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